MATLAB Answers

1-cos(x)^2 doesn't simplify?

7 views (last 30 days)
I found an ancient similar question, apperantly it used to work when at least x is not assigned. But when I try
syms x
simplify (1-cos(x)^2)
I get ans = 1 - cos(x)^2
Is there a reason for this, or is it just a bug?

Accepted Answer

Cris LaPierre
Cris LaPierre on 3 May 2021
Perhaps try using the Steps name-value pair.
syms x
ans = 
Cris LaPierre
Cris LaPierre on 3 May 2021
That is correct. It will not always simplify to what you want.

Sign in to comment.

More Answers (0)





Community Treasure Hunt

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

Start Hunting!

Translated by