time-to-botec

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

repl.txt (820B)


      1 
      2 {{alias}}( [out,] re1, im1, re2, im2 )
      3     Multiplies two complex numbers.
      4 
      5     Parameters
      6     ----------
      7     out: Array|TypedArray|Object (optional)
      8         Output array.
      9 
     10     re1: number
     11         Real component.
     12 
     13     im1: number
     14         Imaginary component.
     15 
     16     re2: number
     17         Real component.
     18 
     19     im2: number
     20         Imaginary component.
     21 
     22     Returns
     23     -------
     24     out: Array|TypedArray|Object
     25         Array containing the real and imaginary components of the result.
     26 
     27     Examples
     28     --------
     29     > var out = {{alias}}( 5.0, 3.0, -2.0, 1.0 )
     30     [ -13.0, -1.0 ]
     31 
     32     // Provide an output array:
     33     > var out = new {{alias:@stdlib/array/float64}}( 2 );
     34     > var v = {{alias}}( out, 5.0, 3.0, -2.0, 1.0 )
     35     <Float64Array>[ -13.0, -1.0 ]
     36     > var bool = ( v === out )
     37     true
     38 
     39     See Also
     40     --------
     41