Skip to content
Reference > Classes

Complex

Definition

Complex var = .... ;

Extends

Extended By

None

Description

A number with a real and imaginary component.

Method Summary

Owner Name Return Type Description
Complex constructor(real, imaginary) Complex Initialize a Complex number object. Must provide the real and imaginary component.
Complex getAbsolute() Double Returns the Absolute value, which is the distance to 0,0 also known as the modulus.
Object getClassName() String Returns the string name of this object's class type.
Complex getConjugate() Complex Returns the conjugate value.
Complex getCos() Complex Returns the cosine.
Complex getCosh() Complex Returns the hyperbolic cosine.
Complex getExponential() Complex Returns the exponential value.
Complex getImaginary() Double Returns the imaginary component.
Complex getLogarithm() Complex Returns the logarithm value.
Complex getNegative() Complex Returns the negative value.
Complex getReal() Double Returns the real component.
Complex getSin() Complex Returns the sine.
Complex getSinh() Complex Returns the hyperbolic sine.
Complex getSqrt() Complex Returns the square root.
Complex getTan() Complex Returns the tangent.
Object toJson() String Returns a json representation of this object.

Method Definitions


constructor(real,imaginary)

Complex complex = new Complex(Number real, Number imaginary)

Description

Initialize a Complex number object. Must provide the real and imaginary component.

Parameter Definition

Name Type Description
real Number 
imaginary Number 

getAbsolute()

Double Complex::getAbsolute()

Description

Returns the Absolute value, which is the distance to 0,0 also known as the modulus.


getConjugate()

Complex Complex::getConjugate()

Description

Returns the conjugate value.


getCos()

Complex Complex::getCos()

Description

Returns the cosine.


getCosh()

Complex Complex::getCosh()

Description

Returns the hyperbolic cosine.


getExponential()

Complex Complex::getExponential()

Description

Returns the exponential value.


getImaginary()

Double Complex::getImaginary()

Description

Returns the imaginary component.


getLogarithm()

Complex Complex::getLogarithm()

Description

Returns the logarithm value.


getNegative()

Complex Complex::getNegative()

Description

Returns the negative value.


getReal()

Double Complex::getReal()

Description

Returns the real component.


getSin()

Complex Complex::getSin()

Description

Returns the sine.


getSinh()

Complex Complex::getSinh()

Description

Returns the hyperbolic sine.


getSqrt()

Complex Complex::getSqrt()

Description

Returns the square root.


getTan()

Complex Complex::getTan()

Description

Returns the tangent.