function
MathUtilities.norm3
Euclidean norm of a 3-vector
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | value | Real | [3] | |
| output | result | Real | |
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;