functionMyNormalize

Calculate normalized vector such that length = 1 and prevent zero-division for zero vector and return only value at requested index

Extends from Modelica.Icons.Function (Icon for functions).

Information

Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED

Inputs

TypeNameDefaultDescription
Real[:]vReal vector
IntegerindIndex of output vector to return

Outputs

TypeNameDefaultDescription
RealresultInput vector v normalized to length=1, at index provided