IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Meta.Numerics.ComplexMath Class Reference

Provides simple functions of complex arguments. More...

Static Public Member Functions

static double Abs (Complex z)
 Computes the absolute value of a complex number. More...
 
static double Arg (Complex z)
 Computes the phase of a complex number. More...
 
static Complex Exp (Complex z)
 Computes e raised to the power of a complex number. More...
 
static Complex Log (Complex z)
 Computes the natrual logarithm of a complex number. More...
 
static Complex Sqr (Complex z)
 Computes the square of a complex number. More...
 
static Complex Sqrt (Complex z)
 Computes the square root of a complex number. More...
 
static Complex Sin (Complex z)
 Computes the sine of a complex number. More...
 
static Complex Sinh (Complex z)
 Computes the hyperbolic sine of a complex number. More...
 
static Complex Cos (Complex z)
 Computes the cosine of a complex number. More...
 
static Complex Cosh (Complex z)
 Computes the hyperbolic cosine of a complex number. More...
 
static Complex Tan (Complex z)
 Computes the tangent of a complex number. More...
 
static Complex Tanh (Complex z)
 Computes the hyperbolic tangent of a complex number. More...
 
static Complex Pow (Complex z, double p)
 Raises a complex number to an arbitrary real power. More...
 
static Complex Pow (double x, Complex z)
 Raises a real number to an arbitrary complex power. More...
 
static Complex Pow (Complex z, int n)
 Raises a complex number to an integer power. More...
 

Properties

static Complex I [get]
 Gets the unit imaginary number I. More...
 

Detailed Description

Provides simple functions of complex arguments.

Member Function Documentation

static double Meta.Numerics.ComplexMath.Abs ( Complex  z)
inlinestatic
static double Meta.Numerics.ComplexMath.Arg ( Complex  z)
inlinestatic

Computes the phase of a complex number.

Parameters
zThe argument.
Returns
The value of arg(z).

The phase of a complex number is the angle between the line joining it to the origin and the real axis of the complex plane.

The phase of complex numbers in the upper complex plane lies between 0 and π. The phase of complex numbers in the lower complex plane lies between 0 and -π. The phase of a real number is zero.

References Meta.Numerics.Complex.Im, and Meta.Numerics.Complex.Re.

Referenced by Test.BugTests.Bug5504(), Test.ComplexMathTest.ComplexLogSum(), Test.ComplexMathTest.ComplexSqrt(), and Test.BugTests.DifficultEigenvalue().

static Complex Meta.Numerics.ComplexMath.Sqr ( Complex  z)
inlinestatic

Computes the square of a complex number.

Parameters
zThe argument.
Returns
The value of z2.

Referenced by Test.ComplexMathTest.ComplexSqrt().

static Complex Meta.Numerics.ComplexMath.Sqrt ( Complex  z)
inlinestatic

Computes the square root of a complex number.

Parameters
zThe argument.
Returns
The square root of the argument.

References Meta.Numerics.Complex.Im, and Meta.Numerics.Complex.Re.

Referenced by Test.ComplexMathTest.ComplexIDefinition(), Test.ComplexMathTest.ComplexPowOneHalf(), Test.ComplexMathTest.ComplexRealAgreement(), and Test.ComplexMathTest.ComplexSqrt().

static Complex Meta.Numerics.ComplexMath.Sinh ( Complex  z)
inlinestatic

Computes the hyperbolic sine of a complex number.

Parameters
zThe argument.
Returns
The value of sinh(z).

References Meta.Numerics.Complex.Im, and Meta.Numerics.Complex.Re.

Referenced by Test.ComplexMathTest.ComplexSinhCoshRelation(), and Test.ComplexMathTest.ComplexSinSinh().

static Complex Meta.Numerics.ComplexMath.Cosh ( Complex  z)
inlinestatic

Computes the hyperbolic cosine of a complex number.

Parameters
zThe argument.
Returns
The value of cosh(z).

References Meta.Numerics.Complex.Im, and Meta.Numerics.Complex.Re.

Referenced by Test.ComplexMathTest.ComplexCosCosh(), and Test.ComplexMathTest.ComplexSinhCoshRelation().

static Complex Meta.Numerics.ComplexMath.Tan ( Complex  z)
inlinestatic
static Complex Meta.Numerics.ComplexMath.Tanh ( Complex  z)
inlinestatic

Computes the hyperbolic tangent of a complex number.

Parameters
zThe argument.
Returns
The value of tanh(z).

References Meta.Numerics.Complex.Im, and Meta.Numerics.Complex.Re.

Referenced by Test.ComplexMathTest.ComplexTanTanh().

static Complex Meta.Numerics.ComplexMath.Pow ( double  x,
Complex  z 
)
inlinestatic

Raises a real number to an arbitrary complex power.

Parameters
xThe real base, which must be non-negative.
zThe complex exponent.
Returns
The value of xz.

References Meta.Numerics.MoreMath.Cos(), Meta.Numerics.Complex.Im, Meta.Numerics.Complex.One, Meta.Numerics.Complex.Re, Meta.Numerics.MoreMath.Sin(), and Meta.Numerics.Complex.Zero.

static Complex Meta.Numerics.ComplexMath.Pow ( Complex  z,
int  n 
)
inlinestatic

Raises a complex number to an integer power.

Parameters
zThe argument.
nThe power.
Returns
The value of zn.

References Meta.Numerics.ComplexMath.Pow().

Property Documentation


The documentation for this class was generated from the following file: