Mathematica 9 is now available
Previous section-----Next section

1.6.2 Numerical Sums, Products and Integrals

NSum[f, {i,  , Infinity}] numerical approximation to
NProduct[f, {i,  , Infinity}] numerical approximation to
NIntegrate[f, {x,  ,  }] numerical approximation to
NIntegrate[f, {x,  ,  }, {y,  ,  }]
the multiple integral

Numerical sums, products and integrals.
Here is a numerical approximation to  .

In[1]:=  NSum[1/i^3, {i, 1, Infinity}]

Out[1]=

NIntegrate can handle singularities at the end points of the integration region.

In[2]:=  NIntegrate[1/Sqrt[x (1-x)], {x, 0, 1}]

Out[2]=

You can do numerical integrals over infinite regions.

In[3]:=  NIntegrate[Exp[-x^2], {x, -Infinity, Infinity}]

Out[3]=

Here is a double integral over a triangular domain. Note the order in which the variables are given.

In[4]:=  NIntegrate[ Sin[x y], {x, 0, 1}, {y, 0, x} ]

Out[4]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.