How can I find the value of Q1 and Q2 in an equation with two unknowns?
3 views (last 30 days)
Show older comments
Mert Dogucu
on 10 Jan 2023
Answered: Walter Roberson
on 10 Jan 2023
I need to find the Q1 and Q2 values in the equation. I tried many things but unfortunately I couldn't find the result. Can you help me?
100*cos(Q1)+40*cos(Q2) = 72.67
100*sin(Q1)+40*sin(Q2) = 10
Q1= ? and Q2 = ?
1 Comment
Dyuman Joshi
on 10 Jan 2023
How does this question relate to MATLAB? It looks like a simple mathematics problem to me.
However, I'll give a hint to solve the problem - Square both equations, add them and use trignometric identities to simplify the generated equation
Accepted Answer
Walter Roberson
on 10 Jan 2023
syms Q1 Q2
A = randi([-99 99]); B = randi([-99 99]);
eqn1 = A*cos(Q1)+B*cos(Q2) == randi([1, 100])
eqn2 = A*sin(Q1)+B*sin(Q2) == randi([1, 100])
sol = solve([eqn1, eqn2])
vpa(subs([Q1, Q2], sol), 5)
0 Comments
More Answers (0)
See Also
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!