Clear Filters
Clear Filters

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

5 views (last 30 days)
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?

Answers (1)

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

Tags

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!