repl.txt (1094B)
1 2 {{alias}}( [x[, y[, ...args]]] ) 3 Returns the minimum 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), positive infinity is the 9 greatest upper bound. Similar to zero being the identity element for the sum 10 of an empty set and to one being the identity element for the product of an 11 empty set, positive infinity is the identity element for the minimum, and 12 thus, if not provided any arguments, the function returns positive infinity. 13 14 Parameters 15 ---------- 16 x: number (optional) 17 First number. 18 19 y: number (optional) 20 Second number. 21 22 args: ...number (optional) 23 Numbers. 24 25 Returns 26 ------- 27 out: number 28 Minimum absolute value. 29 30 Examples 31 -------- 32 > var v = {{alias}}( 3.14, -4.2 ) 33 3.14 34 > v = {{alias}}( 5.9, 3.14, 4.2 ) 35 3.14 36 > v = {{alias}}( 3.14, NaN ) 37 NaN 38 > v = {{alias}}( +0.0, -0.0 ) 39 +0.0 40 41 See Also 42 -------- 43