Help Contents / Arithmetic / Irrational Functions / Norm

Norm num
(Norm num1 num2 ...)
Norm vectorlistOrArray

outputs the norm of the numbers, meaning sqrt(num1^2+num2^2+...). When applied on a nested list or array, only the innermost aggregate structure is being computed. So you can process many vectors at once,  being much faster than with a Logo loop. 

Examples: 

	(Norm 3 4)		;5  ;-) 
	Norm [3 4]		;5  ;-) 
	Norm [3 4]		;5  ;-)  
	Norm [{3 4}[{5 12}{15 8}]]	;[5 [13 17]] ;-)  


previous: LN
