Improve Integrator Accuracy

Improve Integrator Accuracy - Improve Integrator Accuracy - Poruke

#1 Objavljeno: 8. 8. 2017. 09:22:30
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

As delivered, the Smath integrator accuracy is limited to "n subspace 10000".
The attached document exposes two examples that the native integrator fails.
It suggests to code for "n at least 1 000 000".
On your fast PC, will takes ~ 35 min to calculate the document.
Accordingly to Wolfram [Mathematica], they will fail no integration.
In Engineering works, this is not an option.
Conclusively: would be nice Smath implements the equivalent Mathcad/Mathsoft.
various integration options ... I don't have those codes [Mathsoft proprietary].

Jean

Integrate Adaptive Simpson.sm (30,34 KiB) preuzeto 1396 put(ova).
#2 Objavljeno: 8. 8. 2017. 11:10:58
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

2017-08-08 15_50_56-SMath Studio 0.98.6398 - [Romberg.sm_].png
Romberg.sm (13,84 KiB) preuzeto 1372 put(ova).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#3 Objavljeno: 9. 8. 2017. 14:58:31
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Hello Martin,

The Romberg integration transform improves significantly the accuracy
of the result when applicable. Mathcad 11 and earlier performs two tests
to validate application: a trapezoidal on some length and a Richardson
interpolation. If the two tests coincide on some pre-decided basis,
then Romberg is accepted. Otherwise, it performs a "Romberg open end"
[I don't know what it means], to decide an adaptive method [for which
I lost the code also].
From what you are saying, Maxima works on timing => looks weird, isn't it.
The attached exemplifies applicability. All that is because Simpson is
universally a good integrator, but NOT for all integrands.

Integrate Romberg Demo.sm (52,51 KiB) preuzeto 1397 put(ova).
#4 Objavljeno: 9. 8. 2017. 18:10:55
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Timeout-problem resolved. http://smath.info/bts/Issues/IssueDetail.aspx?id=189


I am open to proposals on what integrator to use. The Maxima plugin has the option to search for a symbolic solution if symbolic optimization is requested. If numeric optimization is requested and no unresolved constants remain (units are ok) in the expression, then we could use whatever numeric procedure, be it from Maxima or whatever library.

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#5 Objavljeno: 10. 8. 2017. 09:37:46
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

I am open to proposals on what integrator to use. The Maxima plugin has the option to search for a symbolic solution if symbolic optimization is requested. If numeric optimization is requested and no unresolved constants remain (units are ok) in the expression, then we could use whatever numeric procedure, be it from Maxima or whatever library.



The best library is the Mathcad/Mathsoft, don't know about Mathcad/PTC.
From all that I posted, easy to manage 'singular & infinite limit(s)'.
For those cases that need be checked for convergence [up to 1 000 000],
it is just a matter of increasing the "Integral accuracy" in options.

WolframAlpha is the piece of gold as it gives the indefinite integral
on top of the definite integral result [cumulative within limits].

Cheers, Jean

  • Novi postovi
  • Nema novih postova