Documentation for /Users/balarsen/Documents/idl/larsen/

Generated by IDLdoc

single page | use frames     summary     class     fields     routine details     file attributes

./

hypot.pro

tophypot

result = hypot(arr)

return the hypot of a triangle, really just add in quadrature

Return value

sqrt(arr[0]^2 + arr[1]^2 + ... + arr[n-1]^2)

Parameters

arr in required

array to add in quadrature

Examples

IDL> print, hypot([3,4]) % Compiled module: HYPOT. 5.00000

Author information

History:

Mon Apr 7 21:09:32 2008, Brian Larsen rewritten to take an array input of arbirtary length Fri Sep 14 10:48:41 2007, Brian Larsen written and tested

Statistics

Lines: 6
McCabe complexity:

File attributes

Modifcation date: Tue Sep 9 13:50:59 2008
Lines: 39
Disclaimer