Home Manual Reference Source Test Repository

Function

Static Public Summary
public

$(kernel: *)

public

$0(): *

public

$0($0: *)

public

$1($0: *, $1: *)

public

$1(): *

public

Complex(a: *, b: *)

public

Complex(a: *, b: *)

public

abs(sqrt: *, pow2: *, add: *)

Computes the absolute value (or modulus or magnitude) of the complex number a + bi.

public

add(first: *, second: *): *

public

add(add: *)

Addition algorithm.

public

arg(atan2: *)

Computes the argument of the complex number a + bi.

public

binary(kernel: *)

public

binary(kernel: *)

public

binary(kernel: *)

public

binary(kernel: *)

public

compile(objectPattern: {"add": *, "sub": *, "mul": *, "div": *, "neg": *, "cos": *, "sin": *}, symbol: *): {"mul": *, "div": *, "real": *, "img": *, "con": *}

public

compile(objectPattern: {"add": *, "sub": *, "mul": *, "div": *, "div2": *, "div2n": *, "neg": *, "sqrt": *, "pow2": *, "exp": *, "loge": *, "PI": *, "cos": *, "sin": *, "atan2": *, "parse": *, "stringify": *, "$0": *, "$1": *, "$_1": *, "eq0": *, "eq1": *, "eq_1": *, "gt0": *}, symbol: *): {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}

public

compile(objectPattern: {"mul": *, "div": *, "real": *, "img": *, "con": *}, symbol: *): {"complex": *, "mul": *, "div": *, "real": *, "img": *, "con": *}

public

compile(objectPattern: {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "div": *, "imul": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}, symbol: *): {"complex": *, "$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}

public

compile(objectPattern: {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "div": *, "imul": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}, symbol: *): {"complex": *, "$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}

public

compile(objectPattern: {"mul": *, "div": *, "real": *, "img": *, "con": *}, symbol: *): {"complex": *, "mul": *, "div": *, "real": *, "img": *, "con": *}

public

complex(a: *, b: *)

public

complex(a: *, b: *)

public

complex(a: *, b: *)

public

complex(a: *, b: *)

public

con(neg: *)

Conjugate for polar representation

public

con(neg: *)

Conjugate for cartesian representation

public

div(div: *, sub: *)

public

div(first: *, second: *): *

public

div(div: *, pow2: *, mul: *, add: *, sub: *): undefined[]

Division algorithm

public

div2(div2: *)

public

exp(exp: *, cos: *, sin: *, mul: *)

public

fromarray(arrayPattern: *[])

public

fromarray(arrayPattern: *[])

public

iadd(first: *, second: *): *

public

idiv(first: *, second: *): *

public

img(kernel: *)

public

img(mul: *, sin: *)

public

img(kernel: *)

public

imod(first: *, second: *): *

public

imul(first: *, second: *): *

public

ipow(first: *, second: *): *

public

iroot2n(cos: *, sin: *, pi: *, div2n: *, neg: *)

public

isub(first: *, second: *): *

public

mod(first: *, second: *): *

public

mul(mul: *, add: *, sub: *)

Multiplication algorithm

public

mul(mul: *, add: *)

public

mul(first: *, second: *): *

public

parse(object: *, representation: *): *

public

parse(parse: *, $0: *, $1: *, $_1: *, symbol: *): *

Parse

public

parse(kernel: *)

public

pow(first: *, second: *): *

public

pow(exp: *, abs: *, arg: *, loge: *, mul: *, sub: *, add: *): *

public

real(kernel: *)

public

real(mul: *, cos: *)

public

real(kernel: *)

public

root2n(kernel: *)

public

root2n(cos: *, sin: *, pi: *, div2n: *)

public

stringify(kernel: *)

public

stringify(complex: *, representation: *): *

public

stringify(stringify: *, eq0: *, eq1: *, eq_1: *, gt0: *, symbol: *): *

Stringify

public

sub(first: *, second: *): *

public

unary(kernel: *)

public

unary(kernel: *)

public

unary(kernel: *)

public

unary(kernel: *)

Static Public

public $(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public $0(): * source

Return:

*

public $0($0: *) source

Params:

NameTypeAttributeDescription
$0 *

public $1($0: *, $1: *) source

Params:

NameTypeAttributeDescription
$0 *
$1 *

public $1(): * source

Return:

*

public Complex(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public Complex(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public abs(sqrt: *, pow2: *, add: *) source

Computes the absolute value (or modulus or magnitude) of the complex number a + bi.

Params:

NameTypeAttributeDescription
sqrt *
pow2 *
add *

public add(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public add(add: *) source

Addition algorithm.

Returns the result of (a + bi) + (c + di).

Params:

NameTypeAttributeDescription
add *

public arg(atan2: *) source

Computes the argument of the complex number a + bi.

Params:

NameTypeAttributeDescription
atan2 *

public binary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public binary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public binary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public binary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public compile(objectPattern: {"add": *, "sub": *, "mul": *, "div": *, "neg": *, "cos": *, "sin": *}, symbol: *): {"mul": *, "div": *, "real": *, "img": *, "con": *} source

Params:

NameTypeAttributeDescription
objectPattern {"add": *, "sub": *, "mul": *, "div": *, "neg": *, "cos": *, "sin": *}
  • default: {"add":null,"sub":null,"mul":null,"div":null,"neg":null,"cos":null,"sin":null}
symbol *

Return:

{"mul": *, "div": *, "real": *, "img": *, "con": *}

public compile(objectPattern: {"add": *, "sub": *, "mul": *, "div": *, "div2": *, "div2n": *, "neg": *, "sqrt": *, "pow2": *, "exp": *, "loge": *, "PI": *, "cos": *, "sin": *, "atan2": *, "parse": *, "stringify": *, "$0": *, "$1": *, "$_1": *, "eq0": *, "eq1": *, "eq_1": *, "gt0": *}, symbol: *): {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *} source

Params:

NameTypeAttributeDescription
objectPattern {"add": *, "sub": *, "mul": *, "div": *, "div2": *, "div2n": *, "neg": *, "sqrt": *, "pow2": *, "exp": *, "loge": *, "PI": *, "cos": *, "sin": *, "atan2": *, "parse": *, "stringify": *, "$0": *, "$1": *, "$_1": *, "eq0": *, "eq1": *, "eq_1": *, "gt0": *}
  • default: {"add":null,"sub":null,"mul":null,"div":null,"div2":null,"div2n":null,"neg":null,"sqrt":null,"pow2":null,"exp":null,"loge":null,"PI":null,"cos":null,"sin":null,"atan2":null,"parse":null,"stringify":null,"$0":null,"$1":null,"$_1":null,"eq0":null,"eq1":null,"eq_1":null,"gt0":null}
symbol *

Return:

{"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}

public compile(objectPattern: {"mul": *, "div": *, "real": *, "img": *, "con": *}, symbol: *): {"complex": *, "mul": *, "div": *, "real": *, "img": *, "con": *} source

Params:

NameTypeAttributeDescription
objectPattern {"mul": *, "div": *, "real": *, "img": *, "con": *}
  • default: {"mul":null,"div":null,"real":null,"img":null,"con":null}
symbol *

Return:

{"complex": *, "mul": *, "div": *, "real": *, "img": *, "con": *}

public compile(objectPattern: {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "div": *, "imul": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}, symbol: *): {"complex": *, "$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *} source

Params:

NameTypeAttributeDescription
objectPattern {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "div": *, "imul": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}
  • default: {"$0":null,"$1":null,"root2n":null,"iroot2n":null,"add":null,"sub":null,"mul":null,"div":null,"imul":null,"div2":null,"abs":null,"arg":null,"con":null,"parse":null,"stringify":null,"exp":null,"pow":null}
symbol *

Return:

{"complex": *, "$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}

public compile(objectPattern: {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "div": *, "imul": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}, symbol: *): {"complex": *, "$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *} source

Params:

NameTypeAttributeDescription
objectPattern {"$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "div": *, "imul": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}
  • default: {"$0":null,"$1":null,"root2n":null,"iroot2n":null,"add":null,"sub":null,"mul":null,"div":null,"imul":null,"div2":null,"abs":null,"arg":null,"con":null,"parse":null,"stringify":null,"exp":null,"pow":null}
symbol *

Return:

{"complex": *, "$0": *, "$1": *, "root2n": *, "iroot2n": *, "add": *, "sub": *, "mul": *, "imul": *, "div": *, "div2": *, "abs": *, "arg": *, "con": *, "parse": *, "stringify": *, "exp": *, "pow": *}

public compile(objectPattern: {"mul": *, "div": *, "real": *, "img": *, "con": *}, symbol: *): {"complex": *, "mul": *, "div": *, "real": *, "img": *, "con": *} source

Params:

NameTypeAttributeDescription
objectPattern {"mul": *, "div": *, "real": *, "img": *, "con": *}
  • default: {"mul":null,"div":null,"real":null,"img":null,"con":null}
symbol *

Return:

{"complex": *, "mul": *, "div": *, "real": *, "img": *, "con": *}

public complex(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public complex(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public complex(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public complex(a: *, b: *) source

Params:

NameTypeAttributeDescription
a *
b *

public con(neg: *) source

Conjugate for polar representation

Params:

NameTypeAttributeDescription
neg *

public con(neg: *) source

Conjugate for cartesian representation

Params:

NameTypeAttributeDescription
neg *

public div(div: *, sub: *) source

Params:

NameTypeAttributeDescription
div *
sub *

public div(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public div(div: *, pow2: *, mul: *, add: *, sub: *): undefined[] source

Division algorithm

Params:

NameTypeAttributeDescription
div *
pow2 *
mul *
add *
sub *

Return:

undefined[]

public div2(div2: *) source

Params:

NameTypeAttributeDescription
div2 *

public exp(exp: *, cos: *, sin: *, mul: *) source

Params:

NameTypeAttributeDescription
exp *
cos *
sin *
mul *

public fromarray(arrayPattern: *[]) source

Params:

NameTypeAttributeDescription
arrayPattern *[]
  • default: [null, null]

public fromarray(arrayPattern: *[]) source

Params:

NameTypeAttributeDescription
arrayPattern *[]
  • default: [null, null]

public iadd(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public idiv(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public img(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public img(mul: *, sin: *) source

Params:

NameTypeAttributeDescription
mul *
sin *

public img(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public imod(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public imul(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public ipow(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public iroot2n(cos: *, sin: *, pi: *, div2n: *, neg: *) source

Params:

NameTypeAttributeDescription
cos *
sin *
pi *
div2n *
neg *

public isub(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public mod(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public mul(mul: *, add: *, sub: *) source

Multiplication algorithm

Params:

NameTypeAttributeDescription
mul *
add *
sub *

public mul(mul: *, add: *) source

Params:

NameTypeAttributeDescription
mul *
add *

public mul(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public parse(object: *, representation: *): * source

Params:

NameTypeAttributeDescription
object *
representation *
  • optional
  • default: undefined

Return:

*

public parse(parse: *, $0: *, $1: *, $_1: *, symbol: *): * source

Parse

/!\ DOES NOT CURRENTLY KNOW WHAT WOULD BE THE BEST IMPLEMENTATION

Params:

NameTypeAttributeDescription
parse *
$0 *
$1 *
$_1 *
symbol *

Return:

*

public parse(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public pow(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public pow(exp: *, abs: *, arg: *, loge: *, mul: *, sub: *, add: *): * source

Params:

NameTypeAttributeDescription
exp *
abs *
arg *
loge *
mul *
sub *
add *

Return:

*

public real(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public real(mul: *, cos: *) source

Params:

NameTypeAttributeDescription
mul *
cos *

public real(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public root2n(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public root2n(cos: *, sin: *, pi: *, div2n: *) source

Params:

NameTypeAttributeDescription
cos *
sin *
pi *
div2n *

public stringify(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public stringify(complex: *, representation: *): * source

import {stringify} from '@aureooms/js-complex/src/complex.js'

Params:

NameTypeAttributeDescription
complex *
representation *
  • optional
  • default: COMPLEX_DEFAULT_DISPLAY

Return:

*

public stringify(stringify: *, eq0: *, eq1: *, eq_1: *, gt0: *, symbol: *): * source

Stringify

Params:

NameTypeAttributeDescription
stringify *
eq0 *
eq1 *
eq_1 *
gt0 *
symbol *

Return:

*

public sub(first: *, second: *): * source

Params:

NameTypeAttributeDescription
first *
second *

Return:

*

public unary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public unary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public unary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *

public unary(kernel: *) source

Params:

NameTypeAttributeDescription
kernel *