How can I iteratively solve an algebraic equation?
Mostrar comentarios más antiguos
Hi guys, How can I iteratively solve this equation z=(4.25*x+17)*y^(0.045*x-0.782) so that I end up with x=...? I was told my best chance would be to use Matlab...However, being a complete newbie to the software I think this is beyond my plane of existence! I tried to use the solve function solve('(4.25*x+17)*y^(0.045*x-0.782)-z,x'), but I keep getting an empty sym. Any help would be amazing! Thanks!
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 8 de Nov. de 2016
0 votos
Using solve, with symbolic (unknown) values for y and z, will never succeed. It is quite easy to formulate a problem with no analytical solution. This is one of them. It is also why solve failed to return an answer. There is no magic here.
If you have fixed, numeric values for y and z, then you can search for a numerical solution. vpasolve will suffice, or use fzero. Again though, there is NO functional form that you can write down for x as a function of y and z.
Categorías
Más información sobre Symbolic Math Toolbox 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!