"simplify" doesn't work properly
Ältere Kommentare anzeigen
Dear Matlab users;
I have a problem when I use symbolic toolbox. When it gives the result in symbolic, even though I use simplify comment, it doesn't work properly as I want it to be.
I will give a similar example here, since the actual one is a bit long:
2*(sin(x)*1/2+cos(x)*1/2)
When I calculate the result myself by hand, I get;
sin(x)+cos(x) .
But MATLAB gives the result as I written above.
How can I fix this?
Thanks in advance.
1 Kommentar
Christopher Creutzig
am 3 Dez. 2018
It would probably help to give an actual working example of your problem.
Akzeptierte Antwort
Weitere Antworten (1)
ercan duzgun
am 15 Aug. 2018
0 Stimmen
1 Kommentar
Star Strider
am 15 Aug. 2018
The vpa function is certainly another option.
Kategorien
Mehr zu Assumptions finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!