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

来源:学生作业学帮网 编辑:学帮网 时间:2024/06/30 10:43:55

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)