SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Function pol2xy does not work correctly
Rank: Member Groups: Registered
Joined: 08/03/2012(UTC) Posts: 25 Location: Prague, Dolní Chabry Was thanked: 3 time(s) in 2 post(s)
|
Hello. The function pol2xy(r;fi) works only if the Options/Answer is set to Auto, or Standard. And it returns a complex result !! regards Olik Edited by user 13 March 2012 00:58:33(UTC)
| Reason: Not specified
|
|
|
|
Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello, The only answer I can give you is that you can ignore the imaginary parts of the results (rather small values). a:asin(3/5)pol2xy(5,a)=sys(4-2.01761263306198*10^{-15}*i,3+3.13994492395312*10^{-15}*i,2,1)Re(pol2xy(5,a))=sys(4,3,2,1)el(Re(pol2xy(5,a)),1)=4el(Re(pol2xy(5,a)),2)=3Regards, Radovan Edited by user 12 March 2012 14:31:16(UTC)
| Reason: Not specified |
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |
|
|
|
Rank: Member Groups: Registered
Joined: 08/03/2012(UTC) Posts: 25 Location: Prague, Dolní Chabry Was thanked: 3 time(s) in 2 post(s)
|
Hello. Also we can simply use the definition formulas: x:= r.cos(α) y:= r.sin(α)& it works even for Option/Answer set to "Real". (for Answer=Complex you will get two results for x = -4, 4 ... -4 is imho wrong) [ we can solve this by using the function eval . . . a:=eval(asin(3/5)) ] But the funcion pol2xy() does not work correctly - this is the essence of my bug report. regards Olik btw: I do not see the difference betwen the Option Answer = auto/standard What is the difference? Edited by user 19 March 2012 18:40:54(UTC)
| Reason: Not specified
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
Function pol2xy does not work correctly
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.