packageMath

Library of mathematical functions (e.g., sin, cos) and of functions operating on vectors and matrices

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

Information

This package contains basic mathematical functions (such as sin(..)), as well as functions operating on vectors, matrices, nonlinear functions, and Boolean vectors.

Main Authors

Martin Otter and Marcus Baur
Deutsches Zentrum für Luft- und Raumfahrt (DLR)
Institut für Systemdynamik und Regelungstechnik (SR)
Münchener Straße 20
D-82234 Weßling
Germany
email: Martin.Otter@dlr.de

Copyright © 1998-2025, Modelica Association and contributors

Contents

NameDescription
VectorsLibrary of functions operating on vectors
BooleanVectorsLibrary of functions operating on Boolean vectors
MatricesLibrary of functions operating on matrices
NonlinearLibrary of functions operating on nonlinear equations
PolynomialsLibrary of functions operating on polynomials (including polynomial fitting)
RandomLibrary of functions for generating random numbers
DistributionsLibrary of distribution functions
SpecialLibrary of special mathematical functions
FastFourierTransformLibrary of functions for the Fast Fourier Transform (FFT)
IconsIcons for Math
isEqualDetermine if two Real scalars are numerically identical
isPowerOf2Determine if the integer input is a power of 2
sinSine
cosCosine
tanTangent (u shall not be -pi/2, pi/2, 3*pi/2, ...)
asinInverse sine (-1 <= u <= 1)
acosInverse cosine (-1 <= u <= 1)
atanInverse tangent
atan2Four quadrant inverse tangent
atan3Four quadrant inverse tangent (select solution that is closest to given angle y0)
sinhHyperbolic sine
coshHyperbolic cosine
tanhHyperbolic tangent
asinhInverse of sinh (area hyperbolic sine)
acoshInverse of cosh (area hyperbolic cosine)
expExponential, base e
logNatural (base e) logarithm (u shall be > 0)
log10Base 10 logarithm (u shall be > 0)
wrapAngleWrap angle to interval ]-pi,pi] or [0,2*pi[

Revisions

  • June 22, 2019 by Thomas Beutlich: Functions tempInterpol1/tempInterpol2 moved to ObsoleteModelica4
  • August 24, 2016 by Christian Kral: added wrapAngle
  • October 21, 2002 by Martin Otter and Christian Schweiger:
    Function tempInterpol2 added.
  • Oct. 24, 1999 by Martin Otter:
    Icons for icon and diagram level introduced.
  • June 30, 1999 by Martin Otter:
    Realized.