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).| Name | Description | 
|---|---|
| j=Complex(0, 1) | Imaginary unit | 
| Library of functions operating on complex vectors | |
| Sine of complex number | |
| Cosine of complex number | |
| Tangent of complex number | |
| Arc-sine of complex number | |
| Arc-cosine of complex number | |
| Arc-tangent of complex number | |
| Hyperbolic-sine of complex number | |
| Hyperbolic-cosine of complex number | |
| Hyperbolic-tangent of complex number | |
| Area-hyperbolic-sine of complex number | |
| Area-hyperbolic-cosine of complex number | |
| Area-hyperbolic-tangent of complex number | |
| Exponential of complex number | |
| Logarithm of complex number | |
| Absolute value of complex number | |
| Phase angle of complex number | |
| Conjugate of complex number | |
| Real part of complex number | |
| Imaginary part of complex number | |
| Complex from polar representation | |
| Square root of complex number | |
| Return maximum element of complex vector | |
| Return minimum element of complex vector | |
| Return sum of complex vector | |
| Return product of complex vector | 
Modelica.ComplexMath.sinThis function returns the Complex sine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | sin(c1) | 
Modelica.ComplexMath.cosThis function returns the Complex cosine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = cos(c1) | 
Modelica.ComplexMath.tanThis function returns the Complex tangent of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = tan(c1) | 
Modelica.ComplexMath.asinThis function returns the inverse Complex sine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | arc_sin(c1) | 
Modelica.ComplexMath.acosThis function returns the inverse Complex cosine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = arc_cos(c1) | 
Modelica.ComplexMath.atanThis function returns the inverse Complex tangent of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = arc_tan(c1) | 
Modelica.ComplexMath.sinhThis function returns the Complex hyperbolic sine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | sinh(c1) | 
Modelica.ComplexMath.coshThis function returns the Complex hyperbolic cosine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = cosh(c1) | 
Modelica.ComplexMath.tanhThis function returns the Complex hyperbolic tangent of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = tanh(c1) | 
Modelica.ComplexMath.asinhThis function returns the inverse Complex hyperbolic sine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | ar_sinh(c1) | 
Modelica.ComplexMath.acoshThis function returns the inverse Complex hyperbolic cosine of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = ar_cosh(c1) | 
Modelica.ComplexMath.atanhThis function returns the inverse Complex hyperbolic tangent of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = ar_tanh(c1) | 
Modelica.ComplexMath.expThis function returns the Complex natural exponential of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = exp(c1) | 
Modelica.ComplexMath.logThis function returns the Complex natural logarithm of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = log(c1) | 
Modelica.ComplexMath.'abs'This function returns the Real absolute of the Complex input, i.e., its length.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c | Complex number | 
| Name | Description | 
|---|---|
| result | = abs(c) | 
Modelica.ComplexMath.argThis function returns the Real argument of the Complex input, i.e., its angle.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c | Complex number | 
| phi0 | Phase angle phi shall be in the range: -pi < phi-phi0 < pi [rad] | 
| Name | Description | 
|---|---|
| phi | = phase angle of c [rad] | 
Modelica.ComplexMath.conjThis function returns the Complex conjugate of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = c1.re - j*c1.im | 
Modelica.ComplexMath.realThis function returns the real part of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c | Complex number | 
| Name | Description | 
|---|---|
| r | = c.re | 
Modelica.ComplexMath.imagThis function returns the imaginary part of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c | Complex number | 
| Name | Description | 
|---|---|
| r | = c.im | 
Modelica.ComplexMath.fromPolarThis function constructs a Complex number from its length (absolute) and angle (argument).
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| len | abs of complex | 
| phi | arg of complex [rad] | 
| Name | Description | 
|---|---|
| c | = len*cos(phi) + j*len*sin(phi) | 
Modelica.ComplexMath.'sqrt'This function returns the Complex square root of the Complex input.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| c1 | Complex number | 
| Name | Description | 
|---|---|
| c2 | = sqrt(c1) | 
Modelica.ComplexMath.'max'This function returns the largest element of the Complex input vector, defined by the Complex absolute.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| v[:] | Vector | 
| Name | Description | 
|---|---|
| result | Element of v with largest absolute value | 
| index | v[index] has the largest absolute value | 
Modelica.ComplexMath.'min'This function returns the smallest element of the Complex input vector, defined by the Complex absolute.
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| v[:] | Vector | 
| Name | Description | 
|---|---|
| result | Element of v with smallest absolute value | 
| index | v[index] has the smallest absolute value | 
Modelica.ComplexMath.'sum'This function returns the Complex sum of the Complex input vector
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| v[:] | Vector | 
| Name | Description | 
|---|---|
| result | Complex sum of vector elements | 
Modelica.ComplexMath.'product'This function returns the Complex product of the Complex input vector
Extends from Modelica.Icons.Function (Icon for functions).
| Name | Description | 
|---|---|
| v[:] | Vector | 
| Name | Description | 
|---|---|
| result | Complex product of vector elements |