Borrar filtros
Borrar filtros

solve command gives extra solutions due to different syntax

2 visualizaciones (últimos 30 días)
Gil maor
Gil maor el 18 de Jul. de 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,

Respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by