matlab怎么样化简三角函数?cos(x)*cos(y+z)+cos(x)+2cos(y+z)-sin(x)sin(y+z)这个式子在MATLAB中如何化简

来源:学生学帮网 编辑:学帮网 时间:2024/07/02 10:02:59

matlab怎么样化简三角函数?
cos(x)*cos(y+z)+cos(x)+2cos(y+z)-sin(x)sin(y+z)这个式子在MATLAB中如何化简

syms x y z
simplify(cos(x)*cos(y+z)+cos(x)+2*cos(y+z)-sin(x)*sin(y+z))
ans =
cos(x + y + z) + 2*cos(y + z) + cos(x)