Bug in solve()

Bug in solve() - The answers are different for one equation - 消息

#1 已发布: 2023/2/8 02:12:47
Вячеслав Мезенцев

Вячеслав Мезенцев

1,558个赞,共1,868个帖子。

组: Moderator

Very strange behavior.

solve bug.png
Russia ☭ forever, Viacheslav N. Mezentsev
1位用户喜欢此帖子
sergio 2023/2/8 05:52:00
#2 已发布: 2023/2/8 07:48:30
Alvaro

Alvaro

1,139个赞,共1,805个帖子。

组: User

Hi Viacheslav. Numerical procedures: You can always find examples where they fail. I find this variation of your example particularly worrisome since the function changes sign in the interval where the zeros are requested. It seems that it takes as a tolerance something proportional to the width of the interval

Clipboard02.png

It is true that apparently the SMath algorithm can be improved in several ways. However, something good must have. Here SMath succeeds where Maple, Maxima and FindRoot do not.

Clipboard01.png

solve_bug.sm (9.97 KiB)已下载 1572 次。

Best regards.
Alvaro.
1位用户喜欢此帖子
sergio 2023/2/8 08:44:00
#3 已发布: 2023/2/8 09:32:30
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

Very strange behavior.


I may have written about this bug long time ago.
Solve Calculates Different With Different Ranges
#4 已发布: 2023/2/9 12:22:33
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

Very strange behavior.


Often, strange behavior results from numerical instability.
I have observed that fact between MCD 11 XP 32 bits vs same SS 6179 32 bits.
The best example is the Mathematica 4.0 famous function.
Solving the Goat radius is another example ... no way for 15 decimals !
Mathsoft Minerr uses a specific technique to cope with this fact,
i.e: fool two similar results by injecting a small random.
As well, Smath solvers turn unstable, pedal within their own end iterate.
You forgot to show the function.
Cheers ... Jean.


  • 有新帖
  • 无新帖