CogniPilot

MODELICA LIBRARY · ENGINEERING REFERENCE

function

MathUtilities.norm3

Euclidean norm of a 3-vector

Public declarations

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

RoleNameTypeDimensions / attributes / defaultDescription
inputvalueReal[3]
outputresultReal

Modelica declarations and implementation

Show parameters, interfaces and source

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

function norm3 "Euclidean norm of a 3-vector"
  input Real value[3];
  output Real result;
algorithm
  result := sqrt(value * value);
  annotation(Inline = true);
end norm3;