Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment cphase

  • cphase(re: number, im: number): number
  • Computes the argument of a complex number in radians.

    Notes

    • The argument of a complex number, also known as the phase, is the angle of the radius extending from the origin to the complex number plotted in the complex plane and the positive real axis.

    Parameters

    • re: number

      real component

    • im: number

      imaginary component

    Returns number

    argument

    Example

    var phi = cphase( 5.0, 3.0 );
    // returns ~0.5404