solve command gives extra solutions due to different syntax
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello All,
If an trigonometric equation 2250000*(6*cos(phi1) - sin(phi1))*(6*cos(phi2) - sin(phi2))
and I get extra results when using different syntax
1. when using syntax: solve((6*cos(phi1)-sin(phi1))*(6*cos(phi2)-sin(phi2))==0,'Real',true)
I get two answers, which co-respond to both angles, thinking of it I should get 4 answers, two for each angle
2. when telling matlab to produce results for both angle phi1 and phi2
solve((6*cos(phi1)-sin(phi1))*(6*cos(phi2)-sin(phi2))==0,[phi1 phi2],'Real',true)
I get 4 results for each angle,
two results are the correct results. the other two two are 0 and 0.
which are not the correct results for this equation.
what am I, doing wrong?
Thanks!
Gil,
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Linear Algebra finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!