Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

NIntegrate

Usage

NIntegrate[f, {x,  ,  }] gives a numerical approximation to the integral  .


Notes

• Multidimensional integrals can be specified, as in Integrate.
NIntegrate tests for singularities at the end points of the integration range.
NIntegrate[f, {x,  ,  , ... ,  }] tests for singularities at each of the intermediate points  . If there are no singularities, the result is equivalent to an integral from  to  . You can use complex numbers  to specify an integration contour in the complex plane.
• The following options can be given:
AccuracyGoal Infinity digits of absolute accuracy sought
GaussPoints Automatic initial number of sample points
EvaluationMonitor None expression to evaluate whenever expr is evaluated
MaxPoints Automatic maximum total number of sample points
MaxRecursion 6 maximum number of recursive subdivisions
Method Automatic method to use
MinRecursion 0 minimum number of recursive subdivisions
PrecisionGoal Automatic digits of precision sought
SingularityDepth 4 number of recursive subdivisions before changing variables
WorkingPrecision MachinePrecision the precision used in internal computations
NIntegrate usually uses an adaptive algorithm, which recursively subdivides the integration region as needed. In one dimension, GaussPoints specifies the number of initial points to choose. The default setting for GaussPoints is Floor[WorkingPrecision/3]. In any number of dimensions, MinRecursion specifies the minimum number of recursive subdivisions to try. MaxRecursion gives the maximum number.
NIntegrate usually continues doing subdivisions until the error estimate it gets implies that the final result achieves either the AccuracyGoal or the PrecisionGoal specified.
• The default setting for PrecisionGoal is usually equal to the setting for WorkingPrecision minus 10 digits.
• If an explicit setting for MaxPoints is given, NIntegrate uses quasi Monte Carlo methods to get an estimate of the result, sampling at most the number of points specified.
• The default setting for PrecisionGoal is taken to be 2 in this case.
• You should realize that with sufficiently pathological functions, the algorithms used by NIntegrate can give wrong answers. In most cases, you can test the answer by looking at its sensitivity to changes in the setting of options for NIntegrate.
N[Integrate[ ... ]] calls NIntegrate for integrals that cannot be done symbolically.
NIntegrate has attribute HoldAll.
• Possible settings for Method are GaussKronrod, DoubleExponential, Trapezoidal, Oscillatory, MultiDimensional, MonteCarlo, and QuasiMonteCarlo. GaussKronrod and MultiDimensional are adaptive methods. MonteCarlo and QuasiMonteCarlo are randomized methods, appropriate for high-dimensional integrals.
• Implementation notes: see Section A.9.4.
• See also: NDSolve, NSum.
• New in Version 1; modified in 5.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: