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 witek  
#1 Posted : 10 November 2009 13:37:43(UTC)
witek

Rank: Newbie

Groups: Registered
Joined: 09/11/2009(UTC)
Posts: 2

Hi,

i think I found a nasty bug in the SMath desktop (windows) v0.85.3578.

let us consider an expression:
arccos(-0,3536)=
we get a correct result: 1,9322

however, if we do the same, but with an intermediate assignment to a variable:
a:=arccos(-0,3536)
a=
we get a result: 1,2094

after performing the reversed calculations we get:
cos(1,9322)=-0,3536 - correct
cos(1,2094)=0,3536 - invalid sign


Witold Andrzejewski

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

Offline omorr  
#2 Posted : 10 November 2009 14:24:05(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)
From SMath Studio Live
Open in SMath Cloud

On the other hand, in 0.85_3578 there is no arccos but acos function
acos(-0,3536)=1,9322
a←acos(-0,3536)
a=1,2094

Regards,
Radovan

Edited by user 10 November 2009 14:36:22(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline witek  
#3 Posted : 10 November 2009 21:20:23(UTC)
witek

Rank: Newbie

Groups: Registered
Joined: 09/11/2009(UTC)
Posts: 2

Ok, so the bug is confirmed. I'm glad it isn't some configuration specific glitch Biggrin
Offline Andrey Ivashov  
#4 Posted : 10 November 2009 23:43:16(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
I've reproduced it too (and I'm not glad about that Good). Thank you! Will check and fix.

P.S.: omorr, sorry I'm not answered o you in PM, but I've got a bug with undo/redo as well, so, many thanks to you - will fix it.

Updated: about acos vs arccos. It is an option of the SMath Studio. You can set functions name type via Options > Interface > Functions style (...and program knows about right value of this option for 22 countries).

Edited by user 10 November 2009 23:47:48(UTC)  | Reason: Not specified

Offline omorr  
#5 Posted : 11 November 2009 00:49:27(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)
smath wrote:
P.S.: omorr, sorry I'm not answered o you in PM, but I've got a bug with undo/redo as well, so, many thanks to you - will fix it.

Not at all Good
smath wrote:
Updated: about acos vs arccos. It is an option of the SMath Studio. You can set functions name type via Options > Interface > Functions style (...and program knows about right value of this option for 22 countries).

Oh yes, you are right. I forgot about it, sorry. I could (or someone else) extend the wiki page concerning multilanguage support.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#6 Posted : 19 November 2009 07:48:15(UTC)
Andrey Ivashov


Rank: Administration

Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member
Joined: 11/07/2008(UTC)
Posts: 1,616
Man
Russian Federation

Was thanked: 1978 time(s) in 666 post(s)
witek wrote:
a:=arccos(-0,3536)
a=
we get a result: 1,2094

Error fixed:


Fix will be available into the next SMath Studio version. Thank you for the report.
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.