Difference between Matlab solve and Mupad solve

11 views (last 30 days)
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

Answers (1)

Walter Roberson
Walter Roberson on 10 Dec 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!