FunctionCalculates the Euclidean norm of a vector
Syntax C/C++#include <VFstd.h>
float VF_Euclid( fVector X, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::Euclid();
Pascal/Delphiuses VFstd;
function VF_Euclid( X:fVector; size:UIntSize ): Single;
Descriptionnorm = sqrt( sum( Xi2 ) )
The Euclidean norm of a vector is defined as the square-root of the scalar product of the vector with itself.
Error handlingnone (but beware of a possible overflow!)
Return valueThe Euclidean norm is returned
See alsoVF_ssq,   VF_rms,   VF_scalprod,   VF_xprod

VectorLib Table of Contents  OptiVec home