Solving trigonometric equation using "solve" function.
Show older comments
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.
Accepted Answer
More Answers (1)
Jaimin amin
on 15 Apr 2023
0 votes
sol=solve({-sin[t2+t3]-sin[t2]==-1.5 && cos[t2+t3]+cos[t2]==0.8660},{t2,t3})
2 Comments
Jaimin amin
on 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
Categories
Find more on Common Operations in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!