Solving 2 equations and 2 unknowns
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
%%here's the code below
syms theta1 theta2
f=cos(theta2)-cos(theta1)/(theta2-theta1) == 0.604;
g=(theta1+theta2)*(sin(theta1)+sin(theta2))/(pi^2 - (theta1-theta2)^2) == 0.0073;
soln=solve([f,g], [theta1,theta2]);
theta1=soln.theta1;
theta2=soln.theta2;
Warning: Unable to solve symbolically. Returning a numeric solution using vpasolve.
> In solve (line 304)
In Untitled (line 5)
I wanted to solve for theta1 and theta2 in the equations, but there is a warning when I ran this code.Could you please help me?
Respuestas (1)
John D'Errico
el 3 de En. de 2019
Editada: John D'Errico
el 3 de En. de 2019
You got a solution. So what is the problem?
theta1
theta1 =
-27.304419783125266662080772270734
theta2
theta2 =
99.603101093869382727005185079214
There is no analytical solution, as you were informed by the warning. A warning is not an error, in this case just there to notify you of something pertinent.
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!