Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Complex

Complex Number

Hierarchy

  • Complex

Index

Constructors

constructor

  • Parameters

    • Default value r: Real = 0
    • Default value i: Real = 0

    Returns Complex

Properties

_imag

_imag: Real

_real

_real: Real

Methods

abs

  • Returns Real

add

addScalar

  • Parameters

    Returns Complex

clone

  • Returns Complex

div

divScalar

  • Parameters

    Returns Complex

imag

  • Returns Real

mul

mulScalar

  • Parameters

    Returns Complex

norm

  • Returns Real

real

  • Returns Real

sub

subScalar

  • Parameters

    Returns Complex

toString

  • toString(): string
  • Returns string

Static abs

  • Parameters

    Returns Real

Static add

Static addScalar

Static cloneArray

  • Parameters

    Returns Complex[]

Static div

  • uss STL version to improve accuracy

    Parameters

    Returns Complex

Static divScalar

Static equal

  • Parameters

    Returns boolean

Static exp

Static inverse

Static log

Static mul

Static mulScalar

Static newArray

  • Parameters

    Returns Complex[]

Static notEqual

  • Parameters

    Returns boolean

Static pow

Static pow_i

Static sqrt

Static sub

Static subScalar