Various mathematical functions for complex numbers.
Static member | Description |
Full Usage:
ComplexMath.Abs(c)
Parameters:
Complex
-
The complex argument.
Returns: float
The absolute value (also called modulus, length, euclidean norm) of the complex number.
|
The absolute value (modulus) of complex number. Only for completeness, you can also use c.GetModulus()
|
Full Usage:
ComplexMath.Abs2(c)
Parameters:
Complex
-
The complex argument.
Returns: float
The squared modulus (length^2) of the complex number.
|
The squared modulus (length^2) of the complex number Only for completeness, you can also use c.GetModulusSquared()
|
|
Return the absolute value of a complex type calculated as the euclidean norm Same as ComplexMath.Abs and provided here for compatibility with some libraries.
|
|
Return the absolute value of a complex type calculated as the euclidean norm Same as ComplexMath.Abs and provided here for compatibility with some libraries.
|
|
This function returns the complex arccosine of the complex number a, arccos(a). The branch cuts are on the real axis, less than -1 and greater than 1.
|
Full Usage:
ComplexMath.Acos(a)
Parameters:
ComplexFloat
-
The function argument.
Returns: ComplexFloat
The complex arccosine of the complex number a.
|
This function returns the complex arccosine of the complex number a, arccos(a). The branch cuts are on the real axis, less than -1 and greater than 1.
|
Full Usage:
ComplexMath.Acos(a)
Parameters:
float
-
The function argument.
Returns: Complex
The complex arccosine of the real number a.
|
This function returns the complex arccosine of the real number a, arccos(a). For a between -1 and 1, the function returns a real value in the range [0,pi]. For a less than -1 the result has a real part of pi/2 and a negative imaginary part. For a greater than 1 the result is purely imaginary and positive.
|
|
This function returns the complex hyperbolic arccosine of the complex number a, arccosh(a). The branch cut is on the real axis, less than 1.
|
Full Usage:
ComplexMath.Acosh(a)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The complex hyperbolic arccosine of the complex number a.
|
This function returns the complex hyperbolic arccosine of the complex number a, arccosh(a). The branch cut is on the real axis, less than 1.
|
Full Usage:
ComplexMath.Acosh(a)
Parameters:
float
-
Function argument.
Returns: Complex
The complex hyperbolic arccosine of
the real number a.
|
This function returns the complex hyperbolic arccosine of the real number a, arccosh(a).
|
|
This function returns the complex arccotangent of the complex number a, arccot(a) = arctan(1/a).
|
|
This function returns the complex hyperbolic arccotangent of the complex number a, arccoth(a) = arctanh(1/a).
|
|
This function returns the complex arccosecant of the complex number a, arccsc(a) = arcsin(1/a).
|
Full Usage:
ComplexMath.Acsc(a)
Parameters:
float
-
Function argument.
Returns: Complex
The complex arccosecant of the real number a.
|
This function returns the complex arccosecant of the real number a, arccsc(a) = arcsin(1/a).
|
|
This function returns the complex hyperbolic arccosecant of the complex number a, arccsch(a) = arcsin(1/a).
|
Full Usage:
ComplexMath.Arg(c)
Parameters:
Complex
-
The complex number.
Returns: float
The argument (also called phase) of the complex number.
|
The argument value (also called phase) of a complex number. Only for completeness, you can also use c.GetArgument()
|
Full Usage:
ComplexMath.Arg(c)
Parameters:
ComplexFloat
-
The complex number.
Returns: float
The argument (also called phase) of the complex number.
|
The argument value (also called phase) of a complex number. Only for completeness, you can also use c.GetArgument()
|
|
Calculate the complex argument of a complex type. Also commonly refered to as the phase.
|
|
Calculate the complex argument of a complex type. Also commonly refered to as the phase.
|
|
Calculate the 2-argument of a complex type.
|
|
Calculate the 2-argument of a complex type.
|
|
This function returns the complex arcsecant of the complex number a, arcsec(a) = arccos(1/a).
|
Full Usage:
ComplexMath.Asec(a)
Parameters:
float
-
Function argument.
Returns: Complex
The complex arcsecant of the real number a.
|
This function returns the complex arcsecant of the real number a, arcsec(a) = arccos(1/a).
|
|
This function returns the complex hyperbolic arcsecant of the complex number a, arcsech(a) = arccosh(1/a).
|
|
This function returns the complex arcsine of the complex number a, arcsin(a)}. The branch cuts are on the real axis, less than -1 and greater than 1.
|
Full Usage:
ComplexMath.Asin(a)
Parameters:
ComplexFloat
-
The function argument.
Returns: ComplexFloat
the complex arcsine of the complex number a.
|
This function returns the complex arcsine of the complex number a, arcsin(a)}. The branch cuts are on the real axis, less than -1 and greater than 1.
|
Full Usage:
ComplexMath.Asin(a)
Parameters:
float
-
The function argument.
Returns: Complex
The complex arcsine of the real number a.
|
This function returns the complex arcsine of the real number a, arcsin(a). For a between -1 and 1, the function returns a real value in the range -(pi,pi]. For a less than -1 the result has a real part of -pi/2 and a positive imaginary part. For a greater than 1 the result has a real part of pi/2 and a negative imaginary part.
|
|
This function returns the complex hyperbolic arcsine of the complex number a, arcsinh(a). The branch cuts are on the imaginary axis, below -i and above i.
|
Full Usage:
ComplexMath.Asinh(a)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The complex hyperbolic arcsine of the complex number a.
|
This function returns the complex hyperbolic arcsine of the complex number a, arcsinh(a). The branch cuts are on the imaginary axis, below -i and above i.
|
|
This function returns the complex arctangent of the complex number a, arctan(a)}. The branch cuts are on the imaginary axis, below -i and above i .
|
Full Usage:
ComplexMath.Atan(a)
Parameters:
ComplexFloat
-
The function argument.
Returns: ComplexFloat
The complex arctangent of the complex number a.
|
This function returns the complex arctangent of the complex number a, arctan(a)}. The branch cuts are on the imaginary axis, below -i and above i .
|
|
This function returns the complex hyperbolic arctangent of the complex number a, arctanh(a). The branch cuts are on the real axis, less than -1 and greater than 1.
|
Full Usage:
ComplexMath.Atanh(a)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The complex hyperbolic arctangent of the complex
number a.
|
This function returns the complex hyperbolic arctangent of the complex number a, arctanh(a). The branch cuts are on the real axis, less than -1 and greater than 1.
|
Full Usage:
ComplexMath.Atanh(a)
Parameters:
float
-
Function argument.
Returns: Complex
The complex hyperbolic arctangent of the real
number a.
|
This function returns the complex hyperbolic arctangent of the real number a, arctanh(a).
|
|
Return the complex conjugate of a complex type
|
|
Return the complex conjugate of a complex type
|
|
Returns the cosine of the specified complex function argument z.
|
Full Usage:
ComplexMath.Cos(z)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The cosine of the specified complex function argument z.
|
Returns the cosine of the specified complex function argument z.
|
|
This function returns the complex hyperbolic cosine of the complex number a, cosh(a) = (exp(a) + exp(-z))/2.
|
Full Usage:
ComplexMath.Cosh(a)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The hyperbolic cosine of the specified complex function argument z.
|
This function returns the complex hyperbolic cosine of the complex number a, cosh(a) = (exp(a) + exp(-z))/2.
|
|
Returns the complex cotangent of the complex number z, i.e. 1/Sin(z).
|
|
This function returns the complex hyperbolic cotangent of the complex number a, coth(a) = 1/tanh(a)}.
|
|
Returns the complex cosecant of the complex number z, i.e. 1/Sin(z).
|
|
This function returns the complex hyperbolic cosecant of the complex number a, csch(a) = 1/sinh(a)}.
|
|
Returns the exponential function of the complex function argument.
|
Full Usage:
ComplexMath.Exp(z)
Parameters:
ComplexFloat
-
The complex function argument.
Returns: ComplexFloat
The exponential function of the spezified complex function argument.
|
Returns the exponential function of the complex function argument.
|
|
Returns the inverse of the argument z, i.e. 1/z
|
|
Returns the natural (base e) logarithm of the complex function argument.
|
Full Usage:
ComplexMath.Log(z)
Parameters:
ComplexFloat
-
The complex function argument.
Returns: ComplexFloat
The natural (base e) logarithm of the complex function argument.
|
Returns the natural (base e) logarithm of the complex function argument.
|
|
Returns the base 10 logarithm of the complex function argument.
|
Full Usage:
ComplexMath.LogAbs(z)
Parameters:
Complex
-
The complex function argument.
Returns: float
log |z|, i.e. the natural logarithm of the absolute value of z.
|
Return log |z|.
|
|
Given two complex types return the one with the maximum norm
|
Full Usage:
ComplexMath.Max(v1, v2)
Parameters:
ComplexFloat
v2 : ComplexFloat
Returns: ComplexFloat
|
Given two complex types return the one with the maximum norm
|
|
This function returns the product of the complex number a and the imaginary number iy, z=a*(iy).
|
|
This function returns the product of the complex number a and the real number x, z=ax.
|
|
Return the euclidean norm of a complex type
|
|
Return the euclidean norm of a complex type
|
Full Usage:
ComplexMath.Polar(modulus, argument)
Parameters:
float
-
The modulus (length).
argument : float
-
The argument (angle, radian).
Returns: Complex
The complex number created from the modulus and argument.
|
Create a complex number from a modulus (length) and an argument (radian)
|
|
Return the polar representation of a complex type
|
|
Return the polar representation of a complex type
|
|
Returns a specified (real valued) number raised to the specified (complex valued) power.
|
|
Returns a specified (complex valued) number raised to the specified (complex valued) power.
|
|
Calculates x^n by repeated multiplications. The algorithm takes ld(n) multiplications. This algorithm can also be used with negative n.
|
|
Calculate the power of a complex number.
|
Full Usage:
ComplexMath.Pow(c, exponent)
Parameters:
ComplexFloat
-
exponent : float
-
Returns: ComplexFloat
|
Calculate the power of a complex number
|
|
Returns the square of the complex number.
|
|
Returns the 3rd power of the complex number.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the complex secant of the argument z, i.e. 1/Cos(z)
|
|
This function returns the complex hyperbolic secant of the complex number a, sech(a) = 1/cosh(a).
|
|
Returns the sine of the specified complex function argument z.
|
Full Usage:
ComplexMath.Sin(z)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The sine of the specified complex function argument z.
|
Returns the sine of the specified complex function argument z.
|
|
This function returns the complex hyperbolic sine of the complex number a, sinh(a) = (exp(a) - exp(-a))/2.
|
Full Usage:
ComplexMath.Sinh(a)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The hyperbolic sine of the specified complex function argument a.
|
This function returns the complex hyperbolic sine of the complex number a, sinh(a) = (exp(a) - exp(-a))/2.
|
Full Usage:
ComplexMath.Sqrt(c)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The square root of the complex number c.
|
Calculate the square root of the complex number c.
|
|
Calculate the square root of the complex number c.
|
Full Usage:
ComplexMath.Sqrt(x)
Parameters:
float
-
The function argument.
Returns: Complex
The square root of the number x.
|
Calculate the square root of the real number x.
|
|
Swap two complex numbers |
|
Swap two complex numbers
|
|
Returns the tangent of the specified complex function argument z.
|
Full Usage:
ComplexMath.Tan(z)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The tangent of the specified complex function argument z.
|
Returns the tangent of the specified complex function argument z.
|
|
This function returns the complex hyperbolic tangent of the complex number a, tanh(a) = sinh(a)/cosh(a).
|
Full Usage:
ComplexMath.Tanh(a)
Parameters:
ComplexFloat
-
Function argument.
Returns: ComplexFloat
The hyperbolic tangent of the specified complex function argument z.
|
This function returns the complex hyperbolic tangent of the complex number a, tanh(a) = sinh(a)/cosh(a).
|