solve() "Unable to find explicit solution"
Mostrar comentarios más antiguos
Using solve for an equation is not working and I'm not sure why. This has an explicit solution but it doesn't work. What am I missing?
syms g m L s Y(s)
solve(- m*(s - s^2*Y(s) + 1)*L^2 + g*m*Y(s)*L == 0,Y(s))
Respuesta aceptada
Más respuestas (2)
(I am absolutely positive I had already answered this, but there is no trace of that...)
solve() cannot solve for functions. You will need to substitute a symbolic variable for the function. For example,
syms g m L s Y(s) Ys
eqn = - m*(s - s^2*Y(s) + 1)*L^2 + g*m*Y(s)*L == 0;
solve( subs(eqn, Y(s), Ys), Ys)
1 comentario
Andrew
el 13 de Oct. de 2023
Categorías
Más información sobre Number Theory en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
