Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/cexp/docs/types/index.d"

Index

Functions

Functions

Export assignment cexp

  • Computes the exponential function of a complex number.

    Parameters

    • out: ArrayLike<number>

      output array

    • re: number

      real component

    • im: number

      imaginary component

    Returns ArrayLike < number >

    real and imaginary components

    Example

    var Float32Array = require( `@stdlib/array/float32` );
    
    var out = new Float32Array( 2 );
    
    var v = cexp( out, 0.0, 1.0 );
    // returns <Float32Array>[ ~0.540, ~0.841 ]
    
    var bool = ( v === out );
    // returns true
  • Computes the exponential function of a complex number.

    Parameters

    • re: number

      real component

    • im: number

      imaginary component

    Returns ArrayLike < number >

    real and imaginary components

    Example

    var v = cexp( 0.0, 0.0 );
    // returns [ 1.0, 0.0 ]

    Example

    var v = cexp( 1.0, 0.0 );
    // returns [ ~2.718, 0.0 ]