Numerical Evaluation of Some Definite Integrals

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration shows a trick for computing the definite integral numerically in a given interval of its upper bound using Mathematica. Instead of using NIntegrate we use the function NDSolve. Five test functions are borrowed from reference [1]. Four of these test functions have a singular point at . You can plot the analytic solutions of the test integrals as well as the difference of the numerical and analytic solutions as a function of the upper bound variable for different working precisions. The black point on the curve gives the function value when the slider position is at . At the right endpoint these values coincide with the values given in the reference in the details.

Contributed by: Mikhail Dimitrov Mikhailov (March 2011)
Open content licensed under CC BY-NC-SA


Snapshots


Details

[1] IMSL Fortran Library User's Guide, MATH/LIBRARY Volume 1 of 2, http://mesonpi.cat.cbpf.br/ssolar/imsl.htm.



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.
Send