I'm using MATLAB Live Editor along with the symbolic toolbox. The following expression is not getting simplified. Any fixes?
I've tried using simplify to no avail.
Thanks,
Mohit.

 Akzeptierte Antwort

madhan ravi
madhan ravi am 12 Jun. 2020

0 Stimmen

syms alpha F R
simplify((3*F*R^2*alpha)/64 - 3*R*sqrt(F^2*R^2*alpha^2)/64,...
'IgnoreAnalyticConstraints', true)

6 Kommentare

Walter Roberson
Walter Roberson am 12 Jun. 2020
Right. The two parts are not the same if some of the values are negative.
Mohit Kumar
Mohit Kumar am 12 Jun. 2020
Ah of course! MATLAB doesn't recognise that the values are purely real. Thanks!
madhan ravi
madhan ravi am 12 Jun. 2020
MATLAB doesn’t have “Mind Reading Toolbox” ;)
real is not enough: consider negative real numbers.
You can add assumptions to symbols such as
syms alpha positive
syms R
assume(R>=0)
Mohit Kumar
Mohit Kumar am 13 Jun. 2020
Right, understood. Thanks guys!
Great, thanks!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by