Solving trigonometric equation using "solve" function.
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (1)
Jaimin amin
am 15 Apr. 2023
0 Stimmen
sol=solve({-sin[t2+t3]-sin[t2]==-1.5 && cos[t2+t3]+cos[t2]==0.8660},{t2,t3})
2 Kommentare
Jaimin amin
am 15 Apr. 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
Kategorien
Mehr zu Common Operations finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!