How do I get Symbolic/simplify to replace 1-cos(theta)^2 with sin(theta)^2 etc.

3 次查看(过去 30 天)
I am using simplify on a long, complicated symbolic expression, and it does not replace 1-cos(theta)^2 with sin(theta)^2 nor 1-sin(theta)^2 with cos(theta)^2. It does so on a trivial test expression, but not on my expression, even using 'steps', 1000. How can I force these substitutions?

回答(1 个)

Star Strider
Star Strider 2023-4-23
Without having the longer expression to experiment with, perhaps rewrite or subexpr could work.

类别

Help CenterFile Exchange 中查找有关 Assumptions 的更多信息

标签

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by