VF_tantab2VD_tantab2VE_tantab2
VF_tantab3VD_tantab3VE_tantab3
 Table of tangent values for arguments between 0 and p/2.
Syntax C/C++#include <xmath.h>
extern float    VF_tantab2[ VF_tabsz2+1 ];
extern double   VD_tantab2[ VD_tabsz2+1 ];
extern extended VE_tantab2[ VE_tabsz2+1 ];
extern float    VF_tantab3[ VF_tabsz3+1 ];
extern double   VD_tantab3[ VD_tabsz3+1 ];
extern extended VE_tantab3[ VE_tabsz3+1 ];
Pascal/Delphiuses FTANTAB2, DTANTAB2, ETANTAB2, FTANTAB3, DTANTAB3, ETANTAB3;
VF_tantab2: array[0..VF_tabsz2] of Single;
VD_tantab2: array[0..VD_tabsz2] of Double;
VE_tantab2: array[0..VE_tabsz2] of Extended;
VF_tantab3: array[0..VF_tabsz3] of Single;
VD_tantab3: array[0..VD_tabsz3] of Double;
VE_tantab3: array[0..VE_tabsz3] of Extended;
DescriptionVF_tantab2[ i ] = tan( i/(2*VF_tabsz2) * p ),    i=0,...,VF_tabsz2−1
VF_tantab3[ i ] = tan( i/(2*VF_tabsz3) * p ),    i=0,...,VF_tabsz3−1
VF_tantab2[ VF_tabsz2 ] = VF_tantab3[ VF_tabsz3 ] = 0;

These look-up tables of tangent values for arguments between 0 and p/2 are used by VF_tanrpi2 and the other functions of that family and are also available for other purposes. Since the tangent of p/2 is not defined, zero is stored at its place.
C/C++: The symbols VF_tabsz2 etc., denoting the size of the tables, are defined in <xmath.h>.
Pascal/Delphi: The symbols VF_tabsz2 etc. are defined in the same units as the tables themselves.
FreePascal/Lazarus: These tables are not available for FreePascal/Lazarus.

See alsoVF_tanrpi2,   VF_sintab2,   VF_cosectab2

VectorLib Table of Contents  OptiVec home