MATLAB中用符号计算验证三角等式
问题描述:
MATLAB中用符号计算验证三角等式
验证 sinx1cosx2-cosx1sinx2=sin(x1-x2)
答
直接键入
syms x1 x2
expand(sin(x1)*cos(x2)-cos(x1)*sin(x2)-sin(x1-x2))
>> expand(sin(x1)*cos(x2)-cos(x1)*sin(x2)-sin(x1-x2))
ans =
0