Difference between Matlab solve and Mupad solve

조회 수: 11 (최근 30일)
Heiko
Heiko 2012년 12월 10일
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

답변 (1개)

Walter Roberson
Walter Roberson 2012년 12월 10일
Inside MuPAD you need to use arctan() rather than atan()

카테고리

Help CenterFile Exchange에서 Numeric Solvers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by