VF_pow2VD_pow2VE_pow2
VFx_pow2VDx_pow2VEx_pow2
FunctionReal powers of 2
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/Delphiuses VFmath;
function VF_pow2( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_pow2( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
Descriptionnormal 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 handlingOVERFLOW errors lead to a default result of ±HUGE_VAL.
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero)
See alsoVF_ipow2,   VF_scale2,   VF_log2,   VF_pow,   VF_exp,   pow

VectorLib Table of Contents  OptiVec home