HP MLIB User's Guide Vol. 2 7th Ed.
838 HP MLIB User’s Guide
vsTanh, vdTanh The hyperbolic tangent of the elements of a vector
Name vsTanh, vdTanh
The hyperbolic tangent of the elements of a vector
Purpose vsTanh and vdTanh calculate the hyperbolic tangent function of vector
elements:
y[i] = tanh(a[i]), for 0 <= i <= n-1
Usage VMATH:
#include <vmath.h>
void vsTanh (int n, const float a[ ], float y [ ] ) ;
void vdTanh (int n, const double a [ ], double y [ ] ) ;
VMATH8:
#include <vmath8.h>
void vsTanh (long long n, const float a[ ], float y [ ] ) ;
void vdTanh (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.