|
|
|
| Syntax C/C++ | #include <VFmath.h>
int VF_pow2( fVector Y, fVector X, ui size );
int VFx_pow2( fVector Y, fVector X, ui size, float A, float B, float C ); |
| C++ VecObj | #include <OptiVec.h>
int vector<T>::pow2( const vector<T>& X );
int vector<T>::x_pow2( const vector<T>& X, const T& A, const T& B, const T& C ); |
| Pascal/Delphi | uses VFmath;
function VF_pow2( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_pow2( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool; |
|
| Description | normal versions: Yi = 2.0 Xi
expanded versions: Yi = C * 2.0A*Xi+B
This is an exponential function to the basis of 2.0. |
|
| Error handling | OVERFLOW errors lead to a default result of ±HUGE_VAL. |
|
| Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero) |
|
|