Unable to find explicit solution
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Imanol Fernandez de arroyabe Zabala
el 29 de Oct. de 2022
How can I solve this issue? I have to keep the anwers in terms of R L and d, so I can't turn those into numerical values.
syms R L d
R = R;
L = L;
d = L/2;
syms x y fi teta beta gama
eq(1) = -L*cosd(teta) + x == 0;
eq(2) = -L*sind(teta) - L/2 + y == 0;
eq(3) = -0.5*L*cosd(teta)+d*cosd(fi) == 0;
eq(4) = -0.5*L*sind(teta) - d*sind(fi) + y == 0;
eq(5) = sind(gama) == (0.5*d)/R;
eq(6) = fi + gama + beta == 90;
sol = solve(eq,[x y fi teta beta gama])
0 comentarios
Respuestas (1)
Torsten
el 29 de Oct. de 2022
Editada: Torsten
el 29 de Oct. de 2022
syms d L R x y phi theta
assume (L,'positive')
eq(1) = -L*cos(theta) + x == 0;
eq(2) = -L*sin(theta) - L/2 + y == 0;
eq(3) = -0.5*L*cos(theta) + d*cos(phi) == 0;
eq(4) = -0.5*L*sin(theta) - d*sin(phi) + y == 0;
S = solve([eq(1),eq(2),eq(3),eq(4)],[x y phi theta])
x = simplify(subs(S.x,d,L/2))
y = simplify(subs(S.y,d,L/2))
phi = simplify(subs(S.phi,d,L/2))
theta = simplify(subs(S.theta,d,L/2))
gamma = asin(L/(4*R))
beta = pi/2 - phi - gamma
0 comentarios
Ver también
Categorías
Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!