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 omorr  
#1 Posted : 18 June 2011 22:50:37(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,

I can not see why roots() is working wrong with the second guess value.
Could someone reproduce this please, or tell me if I am doing anything wrong.
If you can reproduce - this might be a bug, or something wrong with my computer (WinXp, SMath v0.89.8 Portable).

Regards,
Radovan

Edited by user 15 February 2012 01:16:57(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"

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

Offline bdrunagle  
#2 Posted : 19 June 2011 00:25:42(UTC)
bdrunagle


Rank: Member

Groups: Registered
Joined: 18/05/2010(UTC)
Posts: 27
Man
United Kingdom

Was thanked: 13 time(s) in 6 post(s)
Hi Radovan

I've just done a very quick check and I get exactly the same results you show using
Smath 0.89 build 8
Windows 7

I don't know why this should happen, sorry.

Brian
Offline omorr  
#3 Posted : 19 June 2011 09:21:04(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)
Thank you Brian,

This is a Live version:
Open in SMath Cloud
Hmm...it seems that is definitely a bug.
With another function - it is Ok
Open in SMath Cloud
Regards,
Radovan

Edited by user 19 June 2011 09:36:06(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline omorr  
#4 Posted : 19 June 2011 09:46:22(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)
Strange? If the 2 in denominator is changed a bit - it is OK???
Open in SMath Cloud
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline bliengme  
#5 Posted : 01 October 2011 07:53:06(UTC)
bliengme

Rank: Newbie

Groups: Registered
Joined: 07/03/2011(UTC)
Posts: 3
Location: Canada

I am using the beta version and do not get this error. In both cases root = +- 2.83 (with b=1, c=1)
Offline omorr  
#6 Posted : 01 October 2011 09:22:32(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,
bliengme wrote:
I am using the beta version and do not get this error. In both cases root = +- 2.83 (with b=1, c=1)

Take a look at the previous example, please. If you use b=1, c=1 the result is correct, but if you use b=1, c=2 then it is not correct.

f(a,b,c):{a^2-2*b}/{2+c}-2
b:1 c:1
roots(f(x,b,c),x,-10)=-2.8284
roots(f(x,b,c),x,10)=2.8284
b:1 c:2
roots(f(x,b,c),x,-10)=-3.1623
roots(f(x,b,c),x,10)=10@# - WRONG

or

roots(f(x,b,c),x,10000)=10000@#

but if you put something like

f(a,b,c):{a^2-2*b}/{2.0000000000001+c}-2

the result is RIGHT! Moreover, Instead of 2+c in the denominator you can put 4+c, 6+c -4+c or any other even number instead of 2 and there will be wrong again. If you put any odd integer (positive , negative) or a real number, the result will be right.There must be some bug here.

roots(f(x,b,c),x,10000)=3.1623@#

On the other hand

solve(f(x,b,c),x,-100,100)=mat(-3.1623,3.1623,2,1)



Regards,
Radovan

Edited by user 01 October 2011 19:55:15(UTC)  | Reason: Not specified

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline omorr  
#7 Posted : 10 January 2012 02:08:53(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,

Unfortunately, It seems that the same bug is still present in the recent v0.90

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Offline Andrey Ivashov  
#8 Posted : 25 January 2012 01:01:36(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)
Fixed.



Best regards, Andrey Ivashov.
thanks 1 user thanked Andrey Ivashov for this useful post.
on 25/01/2012(UTC)
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.