VF_tanhVD_tanhVE_tanh
VCF_tanhVCD_tanhVCE_tanh
VFx_tanhVDx_tanhVEx_tanh
VCFx_tanhVCDx_tanhVCEx_tanh
FunctionHyperbolic tangent function
Syntax C/C++#include <VFmath.h>
int VF_tanh( fVector Y, fVector X, ui size );
int VFx_tanh( fVector Y, fVector X, ui size, float A, float B, float C );
C++ VecObj#include <OptiVec.h>
int vector<T>::tanh( const vector<T>& X );
int vector<T>::x_tanh( const vector<T>& X, const T& A, const T& B, const T& C );
Pascal/Delphiuses VFmath;
function VF_tanh( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_tanh( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
Descriptionnormal versions:
Yi =  tanh( Xi )
     =  exp( Xi ) - exp( -Xi )
exp( Xi ) + exp( -Xi )
 
expanded versions:
Yi = C * tanh( A*Xi+B )
Error handlingThese functions should be error-proof.
Return valuealways FALSE (0).
See alsoVF_sinh,   VF_exp,   tanh

VectorLib Table of Contents  OptiVec home