Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Mathematical Functions / Basic Arithmetic /

Further Examples: Plus (+)

This shows how a sum is represented internally.

In[1]:=

Out[1]//FullForm=

This is a fast way to add up the elements of a list.

In[2]:=

Out[2]=

Here is another way.

In[3]:=

Out[3]=

Given a list of pairs p, the function pairPlus gives a new list of pairs {x, y}. The x's are the unique first components from p and the y's are the sums of the corresponding second components.

In[4]:=

In[5]:=

Out[5]=

In[6]:=



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.