numbers.complex

numbers.complex.add(z)

Add z to this complex number.

Parameters

z : Complex

A complex number.

Returns

w : Complex

A new complex number.

Errors

This function does not raise any errors.


numbers.complex.complexPow(z)

Raise this complex number to a complex number, z.

Parameters

z : Complex

Complex power of this complex number.

Returns

w : Complex

Raised complex number.

Errors

This function does not raise any errors.


numbers.complex.conjugate()

Calculates the conjugate of this complex number.

Parameters
Returns

z : Complex

The conjugate.

Errors

This function does not raise any errors.


numbers.complex.cosine()

Calculates the cosine of this complex number.

Parameters
Returns

z : Complex

The cosine.

Errors

This function does not raise any errors.


numbers.complex.divide(z)

Divide this complex number by z.

Parameters

z : Complex

A complex number.

Returns

w : Complex

A new complex number.

Errors

This function does not raise any errors.


numbers.complex.equals(z)

Determines if this complex number and another complex number, z, are equal.

Parameters

z : Complex

A complex number.

Returns

bool : Boolean

true if this complex number and z are equal; false otherwise.

Errors

This function does not raise any errors.


numbers.complex.magnitude()

Calculates the magnitude of this complex number.

Parameters
Returns

num : Number

The magnitude.

Errors

This function does not raise any errors.


numbers.complex.multiply(z)

Multiply this complex number by z.

Parameters

z : Complex

A complex number.

Returns

w : Complex

A new complex number.

Errors

This function does not raise any errors.


numbers.complex.phase()

Calculates the phase (angle from origin) of this complex number.

Parameters
Returns

num : Number

The phase.

Errors

This function does not raise any errors.


numbers.complex.pow(n)

Raise this complex number to the nth power.

Parameters

n : Number

Power of the complex number.

Returns

w : Complex

Raised complex number.

Errors

This function does not raise any errors.


numbers.complex.roots(n)

Calculates all of the nth roots of this complex number.

Parameters

n : Number

The order of the roots of this complex number.

Returns

roots : Array

The nth roots of this complex number.

Errors

This function does not raise any errors.


numbers.complex.sine()

Calculates the sine of this complex number.

Parameters
Returns

z : Complex

The sine.

Errors

This function does not raise any errors.


numbers.complex.subtract(z)

Subtract z from this complex number.

Parameters

z : Complex

A complex number.

Returns

w : Complex

A new complex number.

Errors

This function does not raise any errors.


numbers.complex.tan()

Calculates the tan of this complex number.

Parameters
Returns

z : Complex

The tan.

Errors

This function does not raise any errors.