Home Manual Reference Source Test Repository
public class | source

Complex

Constructor Summary

Public Constructor
public

constructor(representation: *, real: *, img: *)

Member Summary

Public Members
public

img: *

public

real: *

public

Method Summary

Public Methods
public

abs(): *

public

add(other: *): *

public

cmp(other: *): *

public

conjugate(): *

public

copy(): *

public

div(other: *): *

public
public
public

divides(other: *): *

public

divmod(other: *)

public

eq(other: *): *

public

ge(other: *): *

public

gt(other: *): *

public

iadd(other: *): *

public

idiv(other: *): *

public

imod(other: *)

public

imul(other: *): *

public

ipow(other: *): *

public

isone(): *

public

isquare(): *

public

isub(other: *): *

public

iszero(): *

public

le(other: *): *

public

lt(other: *): *

public

mod(other: *)

public

move(other: *): *

public

mul(other: *): *

public

ne(other: *): *

public

negate(): *

public

nonzero(): *

public

opposite(): *

public

pow(other: Complex): Complex

Computes this raised to the otherth power.

public

signum(): *

public

square(): *

public

sub(other: *): *

public

toString(representation: *): *

Private Methods
private

__floordiv__(other: *)

private

__truediv__(other: *): *

Public Constructors

public constructor(representation: *, real: *, img: *) source

Params:

NameTypeAttributeDescription
representation *
real *
img *

Public Members

public img: * source

public real: * source

public representation: * source

Public Methods

public abs(): * source

Return:

*

public add(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public cmp(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public conjugate(): * source

Return:

*

public copy(): * source

Return:

*

public div(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public divide_knowing_divisible_by(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public divide_knowing_model_contains(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public divides(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public divmod(other: *) source

Params:

NameTypeAttributeDescription
other *

public eq(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public ge(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public gt(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public iadd(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public idiv(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public imod(other: *) source

Params:

NameTypeAttributeDescription
other *

public imul(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public ipow(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public isone(): * source

Return:

*

public isquare(): * source

Return:

*

public isub(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public iszero(): * source

Return:

*

public le(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public lt(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public mod(other: *) source

Params:

NameTypeAttributeDescription
other *

public move(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public mul(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public ne(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public negate(): * source

Return:

*

public nonzero(): * source

Return:

*

public opposite(): * source

Return:

*

public pow(other: Complex): Complex source

Computes this raised to the otherth power.

Params:

NameTypeAttributeDescription
other Complex

The power to raise this to.

Return:

Complex

this ^ other

public signum(): * source

Return:

*

public square(): * source

Return:

*

public sub(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*

public toString(representation: *): * source

Params:

NameTypeAttributeDescription
representation *
  • optional
  • default: COMPLEX_DEFAULT_DISPLAY

Return:

*

Private Methods

private __floordiv__(other: *) source

Params:

NameTypeAttributeDescription
other *

private __truediv__(other: *): * source

Params:

NameTypeAttributeDescription
other *

Return:

*