repl.txt (717B)
1 2 {{alias}}( [out,] re, im ) 3 Evaluates the signum 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 Function result. 20 21 Examples 22 -------- 23 > var out = {{alias}}( -4.2, 5.5 ) 24 [ -0.6069136033622302, 0.79476781392673 ] 25 26 // Provide an output array: 27 > out = new {{alias:@stdlib/array/float64}}( 2 ); 28 > var v = {{alias}}( out, -4.2, 5.5 ) 29 <Float64Array>[ -0.6069136033622302, 0.79476781392673 ] 30 > var bool = ( v === out ) 31 true 32 33 See Also 34 -------- 35