This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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]:=