CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

LieGroups.SO2.product

SO(2) group product: angle addition

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputaRealLeft rotation angle [rad]
inputbRealRight rotation angle [rad]
outputcRealResult rotation angle [rad]

Modelica declarations and implementation

Show parameters, interfaces and source

Parameters, inputs, outputs, defaults and equations from the source file.

function product "SO(2) group product: angle addition"
  input Real a "Left rotation angle [rad]";
  input Real b "Right rotation angle [rad]";
  output Real c "Result rotation angle [rad]";
algorithm
  c := a + b;
end product;