integration accuracy

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

#1 Objavljeno: 22. 5. 2017. 18:28:13
Joey Ooi

Joey Ooi

0 svidjanja u 4 postova.

Grupa: 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 Objavljeno: 22. 5. 2017. 18:50:40
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 Objavljeno: 22. 5. 2017. 21:32:54
Joey Ooi

Joey Ooi

0 svidjanja u 4 postova.

Grupa: User

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

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1337 put(ova).



#5 Objavljeno: 23. 5. 2017. 08:37:48
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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

Jean

Integrate Mathematica.sm (10,19 KiB) preuzeto 1314 put(ova).
#6 Objavljeno: 23. 5. 2017. 08:53:58
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

... like this

Romberg Integrator.gif
#7 Objavljeno: 23. 5. 2017. 14:32:33
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: 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) preuzeto 1299 put(ova).
  • Novi postovi
  • Nema novih postova