Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline olik  
#1 Posted : 09 March 2012 00:07:40(UTC)
olik


Rank: Member

Groups: Registered
Joined: 08/03/2012(UTC)
Posts: 25
Czech Republic
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

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 12 March 2012 14:28:19(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

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)=4
el(Re(pol2xy(5,a)),2)=3

Regards,
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!"
Offline olik  
#3 Posted : 12 March 2012 18:18:03(UTC)
olik


Rank: Member

Groups: Registered
Joined: 08/03/2012(UTC)
Posts: 25
Czech Republic
Location: Prague, Dolní Chabry

Was thanked: 3 time(s) in 2 post(s)
Hello. Smile

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

Users browsing this topic
Guest
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.