magnitude

Takes the magnitude of a three dimensional vector.

Syntax

read magnitude number

Comments

number refers to a component in the current request. This component and the two following it are combined into a vector and its magnitude is calculated. The scalar result is treated as though it was read from the data file and is added to the end of the component list.

Example

read magnitude 3  // take the magnitude of { comp3, comp4, comp5 }