integration accuracy

integration accuracy - Wrong numerical answer for simple integration of 1/ln(x) - 消息

#1 已发布: 2017/5/22 18:28:13
Joey Ooi

Joey Ooi

0个赞,共4个帖子。

组: User


The integral of 1/(ln(x) with limits of x from 2 to 1000 does not agree with mathlab or maxima --
The numerical value of the following integration is off -- should be 176.56 and Smath gives 177.1
Any idea what could be the problem?
Thanks
Joey Ooi

#2 已发布: 2017/5/22 18:50:40
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

Hello [userlink]Joey Ooi[/userlink],

You have to set a better accuracy in the global options (tools >> options >> calculation)

2017-05-22 23_48_28-SMath Studio - [Page1_].png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 已发布: 2017/5/22 21:32:54
Joey Ooi

Joey Ooi

0个赞,共4个帖子。

组: User

Thank you for your quick and accurate response Davide.
It was very helpful indeed.
Best regards
Joey
#4 已发布: 2017/5/23 07:53:55
Jean Giraud

Jean Giraud

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

组: User

Wrote

Any idea what could be the problem?



Smath Simpson iterative integrator is known to range from
exact [sometimes] to poor. Increasing accuracy is fine in
this example but will not converge in other instances like
in the Fourier Quantum double integral. You can rescue
your example using the attached Romberg.
Mathematica online integrator link added.

Jean

Integrate Mathematica.sm (9.92 KiB)已下载 1322 次。



#5 已发布: 2017/5/23 08:37:48
Jean Giraud

Jean Giraud

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

组: User

... revisit same work sheet for the 7 decimals !

Jean

Integrate Mathematica.sm (10.19 KiB)已下载 1301 次。
#6 已发布: 2017/5/23 08:53:58
Jean Giraud

Jean Giraud

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

组: User

... like this

Romberg Integrator.gif
#7 已发布: 2017/5/23 14:32:33
Jean Giraud

Jean Giraud

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

组: User

How many numerical integrators have been imagined ?
1+1+1+... Even Mathcad aren't so easy to deal with.
This visit is worth the time spent.

Jean

Fourier Quantum CoC Model.sm (36.72 KiB)已下载 1289 次。
  • 有新帖
  • 无新帖