|
|
| Function | Exponential function to the basis 2 |
|
| Syntax C/C++ | #include <VFmath.h>
int VF_exp2( fVector Y, fVector X, ui size );
int VFx_exp2( fVector Y, fVector X, ui size, float A, float B, float C ); |
| C++ VecObj | #include <OptiVec.h>
int vector<T>::exp2( const vector<T>& X );
int vector<T>::x_exp2( const vector<T>& X, const T& A, const T& B, const T& C ); |
| Pascal/Delphi | uses VFmath;
function VF_exp2( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_exp2( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool; |
|
| Description | normal versions: Yi = 2 Xi
expanded versions: Yi = C * 2 (A*Xi+B)
Two is raised to the Xi'th power. These function names are used as synonyms for VF_pow2 etc. |
|
| Error handling | OVERFLOW errors lead to a default result of ±HUGE_VAL. |
|
| Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero) |
|
|