Help Contents / Arithmetic / Linear Operations / Sum

Sum num1 num2
(Sum num1 num2 num3 ...)num1 + num2 

outputs the sum of its inputs. 

It's a non-commutative primitive (like all binary math functions), so the order or arguments does matter, if one arg is a list and the other a scalar. 

Example: 

	1+2		;3  ;-) 
	1.2+2.4		;3.6  ;-) 
	1i+2i		;0+3i  ;-) 
	[1 2]+[3 4]		;[4 6] ;-) 
	[1 2]+3		;[4 5] ;-) 
	1+[2 3]		;6  ;-) 

	sum 1 2		;3  ;-) 
	sum 1.2 2.4		;3.6  ;-) 
	sum 1i 2i		;0+3i  ;-) 
	sum [1 2][3 4]		;[4 6] ;-) 
	sum [1 2] 3		;[4 5] ;-) 
	sum 1 [2 3]		;6  ;-) 
	(sum 1 2 3 4 5)		;15  ;-) 


next: Difference
