Difference between Matlab solve and Mupad solve

3 vues (au cours des 30 derniers jours)
Heiko
Heiko le 10 Déc 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

Réponses (1)

Walter Roberson
Walter Roberson le 10 Déc 2012
Inside MuPAD you need to use arctan() rather than atan()

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by