NAME

tan_vec -- unit to compute tan - function for vector

tanh_vec -- unit to compute tanh - function for vector

PROTOTYPES

unitptr tan_vec( int iDim, float fFac, unitptr uHost)

unitptr tanh_vec( int iDim, float fFac, unitptr uHost)

ARGUMENTS

int iDim
dimension of input vector
float fFac
initial value for argument multiplier Y_in[0]
unitptr uHost
host unit

RETURN VALUE:

A pointer to the created unit or NULL in the case of an error.

INTERFACE OF CREATED UNIT:

X_in[Dim]:
input vector with Dim=|iDim| elements, packed for iDim<0
Y_in[1]:
argument multiplier (initialized with fFac)
CTL_in[]:
(control field) a value of 0 switches this unit off.
X_out[Dim]:
output vector with Dim=|iDim| elements, packed for iDim<0

EXECUTION OF CREATED UNIT:

The tan_unit computes the tan - function for all elements X_in[0..Dim-1] of its input vector. For convenience, an additional argument multiplier Y_in[0] is provided (initialized with the value fFac specified when creating the unit):

     X_out[i] = tan(X_in[i]*Y_in[0]), i=0..Dim-1

If CTL_in[0] = 0, no computations are made and the output values remain unchanged. The tanh_unit is defined similarly.

SEE ALSO:


   sin_vec, exp_vec, tanh_vec, log_vec, pow_vec

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../foldersrc/nst_funct.c