Effacer les filtres
Effacer les filtres

solve command gives extra solutions due to different syntax

2 vues (au cours des 30 derniers jours)
Gil maor
Gil maor le 18 Juil 2017
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,

Réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by