1 Pages (8 items)
roots() - bug? - Messages
#1 Posted: 6/18/2011 3:50:37 PM
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
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
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#2 Posted: 6/18/2011 5:25:42 PM
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
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
#3 Posted: 6/19/2011 2:21:04 AM
Thank you Brian,
This is a Live version:
[LIVE width=347 height=197]http://smath.info/live/?file=2865[/LIVE]
Hmm...it seems that is definitely a bug.
With another function - it is Ok
[LIVE width=302 height=285]http://smath.info/live/?file=2870[/LIVE]
Regards,
Radovan
This is a Live version:
[LIVE width=347 height=197]http://smath.info/live/?file=2865[/LIVE]
Hmm...it seems that is definitely a bug.
With another function - it is Ok
[LIVE width=302 height=285]http://smath.info/live/?file=2870[/LIVE]
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#4 Posted: 6/19/2011 2:46:22 AM
Strange? If the 2 in denominator is changed a bit - it is OK???
[LIVE width=407 height=275]http://smath.info/live/?file=2872[/LIVE]
Regards,
Radovan
[LIVE width=407 height=275]http://smath.info/live/?file=2872[/LIVE]
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#5 Posted: 10/1/2011 12:53:06 AM
I am using the beta version and do not get this error. In both cases root = +- 2.83 (with b=1, c=1)
#6 Posted: 10/1/2011 2:22:32 AM
Hello,
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.
[MATH=eng]f(a,b,c):{a^2-2*b}/{2+c}-2[/MATH]
[MATH=eng]b:1[/MATH] [MATH=eng]c:1[/MATH]
[MATH=eng]roots(f(x,b,c),x,-10)=-2.8284[/MATH]
[MATH=eng]roots(f(x,b,c),x,10)=2.8284[/MATH]
[MATH=eng]b:1[/MATH] [MATH=eng]c:2[/MATH]
[MATH=eng]roots(f(x,b,c),x,-10)=-3.1623[/MATH]
[MATH=eng]roots(f(x,b,c),x,10)=10@#[/MATH] - WRONG
or
[MATH=eng]roots(f(x,b,c),x,10000)=10000@#[/MATH]
but if you put something like
[MATH=eng]f(a,b,c):{a^2-2*b}/{2.0000000000001+c}-2[/MATH]
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.
[MATH=eng]roots(f(x,b,c),x,10000)=3.1623@#[/MATH]
On the other hand
[MATH=eng]solve(f(x,b,c),x,-100,100)=mat(-3.1623,3.1623,2,1)[/MATH]
Regards,
Radovan
WroteI 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.
[MATH=eng]f(a,b,c):{a^2-2*b}/{2+c}-2[/MATH]
[MATH=eng]b:1[/MATH] [MATH=eng]c:1[/MATH]
[MATH=eng]roots(f(x,b,c),x,-10)=-2.8284[/MATH]
[MATH=eng]roots(f(x,b,c),x,10)=2.8284[/MATH]
[MATH=eng]b:1[/MATH] [MATH=eng]c:2[/MATH]
[MATH=eng]roots(f(x,b,c),x,-10)=-3.1623[/MATH]
[MATH=eng]roots(f(x,b,c),x,10)=10@#[/MATH] - WRONG
or
[MATH=eng]roots(f(x,b,c),x,10000)=10000@#[/MATH]
but if you put something like
[MATH=eng]f(a,b,c):{a^2-2*b}/{2.0000000000001+c}-2[/MATH]
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.
[MATH=eng]roots(f(x,b,c),x,10000)=3.1623@#[/MATH]
On the other hand
[MATH=eng]solve(f(x,b,c),x,-100,100)=mat(-3.1623,3.1623,2,1)[/MATH]
Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Posted: 1/9/2012 7:08:53 PM
Hello,
Unfortunately, It seems that the same bug is still present in the recent v0.90
Regards,
Radovan
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!"
#8 Posted: 1/24/2012 6:01:36 PM
Fixed.

Best regards, Andrey Ivashov.
Best regards, Andrey Ivashov.
1 users liked this post
Radovan Omorjan 1/24/2012 7:20:00 PM
1 Pages (8 items)
-
New Posts
-
No New Posts