repl.txt (816B)
1 2 {{alias}}( real, imag ) 3 64-bit complex number constructor. 4 5 Both the real and imaginary components are stored as single-precision 6 floating-point numbers. 7 8 Parameters 9 ---------- 10 real: number 11 Real component. 12 13 imag: number 14 Imaginary component. 15 16 Returns 17 ------- 18 z: Complex64 19 64-bit complex number. 20 21 z.re: number 22 Read-only property returning the real component. 23 24 z.im: number 25 Read-only property returning the imaginary component. 26 27 z.BYTES_PER_ELEMENT 28 Size (in bytes) of each component. Value: 4. 29 30 z.byteLength 31 Length (in bytes) of a complex number. Value: 8. 32 33 Examples 34 -------- 35 > var z = new {{alias}}( 5.0, 3.0 ) 36 <Complex64> 37 > z.re 38 5.0 39 > z.im 40 3.0 41 42 See Also 43 -------- 44