solve command gives extra solutions due to different syntax
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Linear Algebra in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!