repl.txt (580B)
1 2 {{alias}}( x ) 3 Relative error exponential. 4 5 When `x` is near zero, 6 7 e^x - 1 8 9 can suffer catastrophic cancellation (i.e., significant loss of precision). 10 This function avoids the loss of precision when `x` is near zero. 11 12 Parameters 13 ---------- 14 x: number 15 Input value. 16 17 Returns 18 ------- 19 y: number 20 Function value. 21 22 Examples 23 -------- 24 > var y = {{alias}}( 0.0 ) 25 1.0 26 > y = {{alias}}( 1.0 ) 27 ~1.718 28 > y = {{alias}}( -1.0 ) 29 ~0.632 30 > y = {{alias}}( NaN ) 31 NaN 32 33 See Also 34 -------- 35