solve command gives extra solutions due to different syntax

2 次查看(过去 30 天)
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 个)

类别

Help CenterFile Exchange 中查找有关 Linear Algebra 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by