Name: add - add two numbers or vector

Synopsis:

n1 n2  add -&gt; n3 
a1 a2  add -&gt; a3


Examples:

1 2   add -&gt; 3 
1.0 2 add -&gt; 3.0 
[1 2] [3 4] add -&gt; [4 6] 
1 [3 4] add -&gt; [4 5]


Description:

add can be used to add numbers and arrays. 
If applied to numbers, add returns the sum of the numbers. If one 
of the arguments is a double, the result is also a double. 
Applied to arrays, add perfoms a per-component addition of the two 
arrays. The components must be numbers, however, integer and double 
values may be mixed. 
Note that the two arrays must be of the same size.


Author:

M-O Gewaltig


SeeAlso:

Dot
Plus
Times

Source:

/var/www/debian/nest/nest-simulator-2.20.0/lib/sli/mathematica.sli
