Solving trigonometric equation using "solve" function.
Afficher commentaires plus anciens
Hi,
I'm trying to solve trigonometric equation as follows,
230.769*cos(x) + 153.846*sin(x) =1.715.
For this, I'm using the matlab code,
syms x;
solve(230.769*cos(x)+153.846*sin(x) == 1.715, x, 'IgnoreProperties',true, 'ReturnConditions', true);
but, in the answer structure, I couldn't find the values. The ans.x field shows that it hase 2 symbols, but there isn't any value inside them. Can you please help to find what is wrong?
Thank you.
Réponse acceptée
Plus de réponses (1)
Jaimin amin
le 15 Avr 2023
0 votes
sol=solve({-sin[t2+t3]-sin[t2]==-1.5 && cos[t2+t3]+cos[t2]==0.8660},{t2,t3})
2 commentaires
Jaimin amin
le 15 Avr 2023
to find t2 and t3
syms x y real
sol=solve([sin(x+y)+sin(x)==1.5,cos(x+y)+cos(x)==0.5*sqrt(3)],[x y])
sol.x
sol.y
Catégories
En savoir plus sur Common Operations dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!