CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.SO2.inverse

SO(2) inverse: negate angle

Public declarations

Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.

RoleNameTypeDimensions / attributes / defaultDescription
inputaRealRotation angle [rad]
outputa_invRealInverse 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;