function
LieGroups.SO2.inverse
SO(2) inverse: negate angle
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | a | Real | | Rotation angle [rad] |
| output | a_inv | Real | | Inverse angle [rad] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function inverse "SO(2) inverse: negate angle"
input Real a "Rotation angle [rad]";
output Real a_inv "Inverse angle [rad]";
algorithm
a_inv := -a;
end inverse;