HP MLIB User's Guide Vol. 2 7th Ed.

826 HP MLIB User’s Guide
vsInvSqrt, vdInvSqrt The reciprocal square root of the elements of a vector
Name vsInvSqrt, vdInvSqrt
The reciprocal square root of the elements of a vector
Purpose vsInvSqrt and vdInvSqrt calculate the reciprocal square root function of vector
elements:
y[i] = 1.0/sqrt(a[i]), for 0 <= i <= n-1
Usage VMATH:
#include <vmath.h>
void vsInvSqrt (int n, const float a[ ], float y [ ] ) ;
void vdInvSqrt (int n, const double a [ ], double y [ ] ) ;
VMATH8:
#include <vmath8.h>
void vsInvSqrt (long long n, const float a[ ], float y [ ] ) ;
void vdInvSqrt (long long n, const double a [ ], double y [ ] ) ;
Input n Number of elements to be calculated.
a Array of length at least n, specifying the input vector.
Output y Array of length at least n, specifying the output vector.