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

832 HP MLIB User’s Guide
vsPowx, vdPowx Elements of a vector raised to a scalar power
Name vsPowx, vdPowx
Elements of a vector raised to a scalar power
Purpose vsPowx and vdPowx raise vector elements to a scalar power:
y[i] = powx(a[i],b[i]), for 0 <= i <= n-1
Usage VMATH:
#include <vmath.h>
void vsPowx (int n, const float a[ ], float b [ ], float y [ ] ) ;
void vdPowx (int n, const double a [ ], double b [ ], double y [ ] ) ;
VMATH8:
#include <vmath8.h>
void vsPowx (long long n, const float a[ ], float b[ ], float y [ ] ) ;
void vdPowx (long long n, const double a [ ], double b[ ], double
y [ ] ) ;
Input n Number of elements to be calculated.
a Array of length at least n, specifying the input vector of
bases.
b The exponent.
Output y Array of length at least n, specifying the output vector.