time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (821B)


      1 
      2 {{alias}}( real, imag )
      3     128-bit complex number constructor.
      4 
      5     Both the real and imaginary components are stored as double-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: Complex128
     19         128-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: 8.
     29 
     30     z.byteLength
     31         Length (in bytes) of a complex number. Value: 16.
     32 
     33     Examples
     34     --------
     35     > var z = new {{alias}}( 5.0, 3.0 )
     36     <Complex128>
     37     > z.re
     38     5.0
     39     > z.im
     40     3.0
     41 
     42     See Also
     43     --------
     44