Library of mathematical functions (e.g., sin, cos), where angle is a quantity
This package contains trigonometric functions that have been copied and modified from Modelica.Math to accept or return angle as a quantity.
Extends from Icons.Package (Icon for standard packages (from MSL 3.2.1)).
Name | Description |
---|---|
acos | Inverse cosine (-1 ≤ u ≤ 1) |
asin | Inverse sine (-1 ≤ u ≤ 1) |
atan | Inverse tangent |
atan2 | Four quadrant inverse tangent |
atan3 | Four quadrant inverse tangent (with solution closest to given angle y0) |
cos | Cosine |
sin | Sine |
tan | Tangent (u shall not be -π/2 rad, π/2 rad, 3π/2 rad, …) |
Inverse cosine (-1 ≤ u ≤ 1)
This function returns y = acos(u), with -1 ≤ u ≤ +1, where y is an angle.
Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).
Type | Name | Default | Description |
---|---|---|---|
Real | u |
Type | Name | Description |
---|---|---|
Angle | y | [ A] |
Inverse sine (-1 ≤ u ≤ 1)
This function returns y = asin(u), with -1 ≤ u ≤ +1, where y is an angle.
Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).
Type | Name | Default | Description |
---|---|---|---|
Real | u |
Type | Name | Description |
---|---|---|
Angle | y | [ A] |
Inverse tangent
This function returns y = atan(u), with -∞ < u < ∞, where y is an angle.
Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).
Type | Name | Default | Description |
---|---|---|---|
Real | u |
Type | Name | Description |
---|---|---|
Angle | y | [ A] |
Four quadrant inverse tangent
This function returns y = atan2(u1, u2), where y is an angle, such that tan(y) = u1/u2 and y is in the range -π rad < y ≤ π rad. u2 may be zero, provided u1 is not zero. Usually u1, u2 is provided in such a form that u1 = sin(y) and u2 = cos(y).
Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).
Type | Name | Default | Description |
---|---|---|---|
Real | u1 | ||
Real | u2 |
Type | Name | Description |
---|---|---|
Angle | y | [ A] |
Four quadrant inverse tangent (with solution closest to given angle y0)
This function returns y = atan2(u1, u2, y0), where y is an angle, such that tan(y) = u1/u2 and y is in the range -π rad < y - y0 ≤ π rad. u2 may be zero, provided u1 is not zero.
The difference from atan2() is the optional third argument y0 that specifies which of the infinite many solutions is returned. Note that for the default case (y0 = 0), the result is the same as from atan2().
Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).
Type | Name | Default | Description |
---|---|---|---|
Real | u1 | ||
Real | u2 | ||
Angle | y0 | 0 | y shall be in the range: -π < y - y0 ≤ π [ A] |
Type | Name | Description |
---|---|---|
Angle | y | [ A] |
Cosine
This function returns y = cos(u), where u is an angle.
Extends from Modelica.Math.Icons.AxisLeft (Basic icon for mathematical function with y-axis on left side).
Type | Name | Default | Description |
---|---|---|---|
Angle | u | [ A] |
Type | Name | Description |
---|---|---|
Real | y |
Sine
This function returns y = sin(u), where u is an angle.
Extends from Modelica.Math.Icons.AxisLeft (Basic icon for mathematical function with y-axis on left side).
Type | Name | Default | Description |
---|---|---|---|
Angle | u | [ A] |
Type | Name | Description |
---|---|---|
Real | y |
Tangent (u shall not be -π/2 rad, π/2 rad, 3π/2 rad, …)
This function returns y = tan(u), where u is an angle (if u is a multiple of (n - 1/2) π rad, then y = tan(u) is ±∞).
Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).
Type | Name | Default | Description |
---|---|---|---|
Angle | u | [ A] |
Type | Name | Description |
---|---|---|
Real | y |