Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

NSum

Usage
Notes
Further Examples

Here is an exact summation and an approximation to it.

In[1]:=  

Out[1]=

In[2]:=  

Out[2]//FullForm=

This gives a close approximation.

In[3]:=  

Out[3]//FullForm=

Here is another exact summation and an approximation.

In[4]:=  

Out[4]=

In[5]:=  

Out[5]//FullForm=

Again NSum gives a close approximation.

In[6]:=  

Out[6]//FullForm=

Using Options to Get Better Results

Here is the exact value of a sum.

In[7]:=  

Out[7]=

Here is the approximate value of exact.

In[8]:=  

Out[8]=

Here is the approximation by NSum. The absolute error is about  times greater than the exact result.

In[9]:=  

Out[9]=

In[10]:=  

Out[10]=

Using the option NSumTerms gives a much better result.

In[11]:=  

Out[11]=

In[12]:=  

Out[12]=

Using the option NSumTerms with higher working precision gives an even better result.

In[13]:=  

Out[13]=

In[14]:=  

Out[14]=

Changing the Method option and in addition using NSumExtraTerms gives a still better result.

In[15]:=  

Out[15]=

In[16]:=  

Out[16]=

In[17]:=  


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



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