repl.txt (1129B)
1 2 {{alias}}( [x[, y[, ...args]]] ) 3 Returns the maximum absolute value. 4 5 If any argument is `NaN`, the function returns `NaN`. 6 7 When an empty set is considered a subset of the extended reals (all real 8 numbers, including positive and negative infinity), negative infinity is the 9 least upper bound. Similar to zero being the identity element for the sum of 10 an empty set and to one being the identity element for the product of an 11 empty set, negative infinity is the identity element for the maximum, and 12 thus, if not provided any arguments, the function returns `+infinity` (i.e., 13 the absolute value of `-infinity`). 14 15 Parameters 16 ---------- 17 x: number (optional) 18 First number. 19 20 y: number (optional) 21 Second number. 22 23 args: ...number (optional) 24 Numbers. 25 26 Returns 27 ------- 28 out: number 29 Maximum absolute value. 30 31 Examples 32 -------- 33 > var v = {{alias}}( 3.14, -4.2 ) 34 4.2 35 > v = {{alias}}( 5.9, 3.14, 4.2 ) 36 5.9 37 > v = {{alias}}( 3.14, NaN ) 38 NaN 39 > v = {{alias}}( +0.0, -0.0 ) 40 +0.0 41 42 See Also 43 -------- 44