Azzera filtri
Azzera filtri

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

5 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

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

Tag

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by