repl.txt (707B)
1 2 {{alias}}( [out,] re, im ) 3 Computes the exponential function of a complex number. 4 5 Parameters 6 ---------- 7 out: Array|TypedArray|Object (optional) 8 Output array. 9 10 re: number 11 Real component. 12 13 im: number 14 Imaginary component. 15 16 Returns 17 ------- 18 out: Array|TypedArray|Object 19 Real and imaginary components. 20 21 Examples 22 -------- 23 > var y = {{alias}}( 0.0, 0.0 ) 24 [ 1.0, 0.0 ] 25 26 > y = {{alias}}( 0.0, 1.0 ) 27 [ ~0.540, ~0.841 ] 28 29 > var out = new {{alias:@stdlib/array/float64}}( 2 ); 30 > var v = {{alias}}( out, 0.0, 1.0 ) 31 <Float64Array>[ ~0.540, ~0.841 ] 32 > var bool = ( v === out ) 33 true 34 35 See Also 36 -------- 37