VF_log10VD_log10VE_log10
VCF_log10VCD_log10VCE_log10
VFx_log10VDx_log10VEx_log10
VCFx_log10VCDx_log10VCEx_log10
VPF_log10toCVPD_log10toCVPE_log10toC
FunctionDecadic logarithm
Syntax C/C++#include <VFmath.h>
int VF_log10( fVector Y, fVector X, ui size );
int VFx_log10( fVector Y, fVector X, ui size, float A, float B, float C );
int VPF_log10toC( cfVector Y, pfVector X, ui size );
C++ VecObj#include <OptiVec.h>
int vector<T>::log10( const vector<T>& X );
int vector<T>::x_log10( const vector<T>& X, const T& A, const T& B, const T& C );
int vector<complex<T>>::log10toC( const vector<polar<T>>& X );
Pascal/Delphiuses VFmath;
function VF_log10( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_log10( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
function VPF_log10toC( Y:cfVector; X:pfVector; size:UIntSize ): IntBool;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_log10( fVector d_Y, fVector d_X, ui size );
int cudaVFx_log10( fVector d_Y, fVector d_X, ui size, float A, float B, float C );
int cusdVFx_log10( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B, float *d_C );
int VFcu_log10( fVector h_Y, fVector h_X, ui size );
int VFxcu_log10( fVector h_Y, fVector h_X, ui size, float A, float B, float C );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_log10( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFx_log10( d_Y, d_X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
function cusdVFx_log10( d_Y, d_X:fVector; size:UIntSize; d_A, d_B, d_C:PSingle ): IntBool;
function VFcu_log10( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFxcu_log10( h_Y, h_X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
Descriptionsimple versions: Yi = lg( Xi )
expanded versions: Yi = C * lg( A*Xi+B )
The decadic logarithm (to the basis of 10) is calculated.
Error handlingReal versions: DOMAIN errors occur in the case of negative Xi (including −0.0), with NAN ("not-a-number") as the default result. SING errors occur for Xi= +0.0 and yield a result of -HUGE_VAL. In the complex version, numbers with an imaginary part of zero are always treated as real numbers; therefore, an argument {0, 0} is treated as a real 0, causing a SING error with the default result {-HUGE_VAL, 0}.
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero)
See alsoVF_pow10,   VF_log,   VF_log2,   VF_pow,   log10 (the latter function is defined in ANSI C; for Pascal, it is available in the unit XMATH coming with OptiVec).

VectorLib Table of Contents  OptiVec home