Package Modelica.​ComplexMath
Library of complex mathematical functions (e.g., sin, cos) and of functions operating on complex vectors and matrices

Information

This package contains basic mathematical functions operating on complex numbers (such as sin(..)), as well as functions operating on vectors of complex numbers.

Extends from Modelica.​Icons.​Package (Icon for standard packages).

Package Contents

NameDescription
'abs'Absolute value of complex number
'max'Return maximum element of complex vector
'min'Return minimum element of complex vector
'product'Return product of complex vector
'sqrt'Square root of complex number
'sum'Return sum of complex vector
acosArc-cosine of complex number
acoshArea-hyperbolic-cosine of complex number
argPhase angle of complex number
asinArc-sine of complex number
asinhArea-hyperbolic-sine of complex number
atanArc-tangent of complex number
atanhArea-hyperbolic-tangent of complex number
conjConjugate of complex number
cosCosine of complex number
coshHyperbolic-cosine of complex number
expExponential of complex number
fromPolarComplex from polar representation
imagImaginary part of complex number
logLogarithm of complex number
realReal part of complex number
sinSine of complex number
sinhHyperbolic-sine of complex number
tanTangent of complex number
tanhHyperbolic-tangent of complex number
VectorsLibrary of functions operating on complex vectors

Package Constants

TypeNameValueDescription
final ComplexjComplex(0, 1)Imaginary unit

Function Modelica.​ComplexMath.​sin
Sine of complex number

Information

This function returns the Complex sine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2sin(c1)

Function Modelica.​ComplexMath.​cos
Cosine of complex number

Information

This function returns the Complex cosine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= cos(c1)

Function Modelica.​ComplexMath.​tan
Tangent of complex number

Information

This function returns the Complex tangent of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= tan(c1)

Function Modelica.​ComplexMath.​asin
Arc-sine of complex number

Information

This function returns the inverse Complex sine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2arc_sin(c1)

Function Modelica.​ComplexMath.​acos
Arc-cosine of complex number

Information

This function returns the inverse Complex cosine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= arc_cos(c1)

Function Modelica.​ComplexMath.​atan
Arc-tangent of complex number

Information

This function returns the inverse Complex tangent of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= arc_tan(c1)

Function Modelica.​ComplexMath.​sinh
Hyperbolic-sine of complex number

Information

This function returns the Complex hyperbolic sine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2sinh(c1)

Function Modelica.​ComplexMath.​cosh
Hyperbolic-cosine of complex number

Information

This function returns the Complex hyperbolic cosine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= cosh(c1)

Function Modelica.​ComplexMath.​tanh
Hyperbolic-tangent of complex number

Information

This function returns the Complex hyperbolic tangent of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= tanh(c1)

Function Modelica.​ComplexMath.​asinh
Area-hyperbolic-sine of complex number

Information

This function returns the inverse Complex hyperbolic sine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2ar_sinh(c1)

Function Modelica.​ComplexMath.​acosh
Area-hyperbolic-cosine of complex number

Information

This function returns the inverse Complex hyperbolic cosine of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= ar_cosh(c1)

Function Modelica.​ComplexMath.​atanh
Area-hyperbolic-tangent of complex number

Information

This function returns the inverse Complex hyperbolic tangent of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= ar_tanh(c1)

Function Modelica.​ComplexMath.​exp
Exponential of complex number

Information

This function returns the Complex natural exponential of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= exp(c1)

Function Modelica.​ComplexMath.​log
Logarithm of complex number

Information

This function returns the Complex natural logarithm of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= log(c1)

Function Modelica.​ComplexMath.​'abs'
Absolute value of complex number

Information

This function returns the Real absolute of the Complex input, i.e., its length.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ComplexcComplex number

Outputs

TypeNameDescription
Realresult= abs(c)

Function Modelica.​ComplexMath.​arg
Phase angle of complex number

Information

This function returns the Real argument of the Complex input, i.e., its angle.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ComplexcComplex number
Anglephi0Phase angle phi shall be in the range: -pi < phi-phi0 < pi

Outputs

TypeNameDescription
Anglephi= phase angle of c

Function Modelica.​ComplexMath.​conj
Conjugate of complex number

Information

This function returns the Complex conjugate of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= c1.re - j*c1.im

Function Modelica.​ComplexMath.​real
Real part of complex number

Information

This function returns the real part of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ComplexcComplex number

Outputs

TypeNameDescription
Realr= c.re

Function Modelica.​ComplexMath.​imag
Imaginary part of complex number

Information

This function returns the imaginary part of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
ComplexcComplex number

Outputs

TypeNameDescription
Realr= c.im

Function Modelica.​ComplexMath.​fromPolar
Complex from polar representation

Information

This function constructs a Complex number from its length (absolute) and angle (argument).

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Reallenabs of complex
Anglephiarg of complex

Outputs

TypeNameDescription
Complexc= len*cos(phi) + j*len*sin(phi)

Function Modelica.​ComplexMath.​'sqrt'
Square root of complex number

Information

This function returns the Complex square root (principal square root) of the Complex input.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexc1Complex number

Outputs

TypeNameDescription
Complexc2= sqrt(c1)

Function Modelica.​ComplexMath.​'max'
Return maximum element of complex vector

Information

This function returns the largest element of the Complex input vector, defined by the Complex absolute.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexv[:]Vector

Outputs

TypeNameDescription
ComplexresultElement of v with largest absolute value
Integerindexv[index] has the largest absolute value

Function Modelica.​ComplexMath.​'min'
Return minimum element of complex vector

Information

This function returns the smallest element of the Complex input vector, defined by the Complex absolute.

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexv[:]Vector

Outputs

TypeNameDescription
ComplexresultElement of v with smallest absolute value
Integerindexv[index] has the smallest absolute value

Function Modelica.​ComplexMath.​'sum'
Return sum of complex vector

Information

This function returns the Complex sum of the Complex input vector

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexv[:]Vector

Outputs

TypeNameDescription
ComplexresultComplex sum of vector elements

Function Modelica.​ComplexMath.​'product'
Return product of complex vector

Information

This function returns the Complex product of the Complex input vector

Extends from Modelica.​Icons.​Function (Icon for functions).

Inputs

TypeNameDescription
Complexv[:]Vector

Outputs

TypeNameDescription
ComplexresultComplex product of vector elements

Generated 2018-12-12 12:14:36 EST by MapleSim.