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 Center および File ExchangeNumeric Solvers についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by