Difference between Matlab solve and Mupad solve

11 visualizaciones (últimos 30 días)
Heiko
Heiko el 10 de Dic. de 2012
Hello,
i have a problem with a difficult equation.
eq=-h-(R+x)*sin(atan(-y/(R+x)))+y*cos(atan(-y/(R+x)))
i want to solve this equation to R.
I can do this in the matlab console
syms h R x y
eq=-h-(R+x)*sin(atan(-y/(R+x)))+y*cos(atan(-y/(R+x)))
solve(eq,R)
then i get a solution.
But i want do it in Mupad, but it didnt work.
eq:=-h-(R+x)*sin(atan(-y/(R+x)))+y*cos(atan(-y/(R+x)))
solve(eq,R)
as output i get my input...
i have no idea why.
Have anybody the same problem? Or has a solution for this problem? What is the difference of the Matlab solve and the MUpad?
regards
Heiko

Respuestas (1)

Walter Roberson
Walter Roberson el 10 de Dic. de 2012
Inside MuPAD you need to use arctan() rather than atan()

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by