Help Contents / Arithmetic / Linear Operations / Difference

Difference num1 num2num1 - num2 

outputs the difference of its inputs.  Minus sign means infix difference in ambiguous contexts (when preceded by a complete expression), unless it is preceded by a space and followed by a nonspace. 

Examples: 

	1-2		;-1  ;-) 
	1.2-2.4		;-1.2  ;-) 
	1i-2i		;0-1i  ;-) 
	[1 2]-[3 4]		;[-2 -2] ;-) 
	[1 2]- 3		;[-2 -1] ;-) 
	1-[2 3]		;-4  ;-) 

	Difference 1 2		;-1  ;-) 
	Difference 1.2 2.4		;-1.2  ;-) 
	Difference 1i 2i		;0-1i  ;-) 
	Difference [1 2][3 4]		;[-2 -2] ;-) 
	Difference [1 2] 3		;[-2 -1] ;-) 
	Difference 1 [2 3]		;-4  ;-) 


previous: Sum	next: Minus
