Complex Class Function Manual |
Purpose
To report the amplitude of a complex number. It is the square root of the summation of square of the real part and square of the imaginary part.
Class
Complex
Usage
{double} ret = object.AMP()
Example:
->a =
Complex(9,2) |
See also (class function)
Purpose
To generate a complex conjugate of a complex number.
Class
Complex
Usage
{Complex} ret = object.CONJ()
Example:
->a =
Complex(9,2) |
See also (class function)
Purpose
To get the imaginary part of a complex number.
Class
Complex
Usage
{double} ret = object.IMG()
Example:
->a =
Complex(9,2) |
See also (class function)
real
Purpose
To
initialize a complex number object.
Class
Complex
Usage
{void} object.INIT({double} argm1, {double} argm2)
argm1 = real part
argm2 = imaginary part
Example:
->a = Complex() |
See also (class function)
real, img
Purpose
To get the real part of a complex number.
Class
Complex
Usage
{double} ret = object.REAL()
Example:
->a =
Complex(9,2) |
See also (class function)