MATLAB中用符号计算验证三角等式 (sin(x))^2+(cos(x))^2=1
问题描述:
MATLAB中用符号计算验证三角等式 (sin(x))^2+(cos(x))^2=1
答
>> syms x
>> y=(sin(x))^2+(cos(x))^2
y =
cos(x)^2 + sin(x)^2
>> simplify(y)
ans =
1