Table of cosecant values for arguments between 0 and p/2.
Syntax C/C++#include <xmath.h>
extern float    VF_cosectab2[ VF_tabsz2+1 ];
extern double   VD_cosectab2[ VD_tabsz2+1 ];
extern extended VE_cosectab2[ VE_tabsz2+1 ];
extern float    VF_cosectab3[ VF_tabsz3+1 ];
extern double   VD_cosectab3[ VD_tabsz3+1 ];
extern extended VE_cosectab3[ VE_tabsz3+1 ];
Pascal/Delphiuses FCSCTAB3, DCSCTAB3, ECSCTAB3;
VF_cosectab2: array[0..VF_tabsz2] of Single;
VD_cosectab2: array[0..VD_tabsz2] of Double;
VE_cosectab2: array[0..VE_tabsz2] of Extended;
VF_cosectab3: array[0..VF_tabsz3] of Single;
VD_cosectab3: array[0..VD_tabsz3] of Double;
VE_cosectab3: array[0..VE_tabsz3] of Extended;
Description VF_cosectab2[ i ] = cosec ( i/(2*VF_tabsz2) * p ),    i=0,...,VF_tabsz2-1
VF_cosectab3[ i ] = cosec ( i/(2*VF_tabsz3) * p ),    i=0,...,VF_tabsz3-1
VF_cosectab2[ VF_tabsz2 ] = VF_cosectab3[ VF_tabsz3 ] = 0

These look-up tables of cosecant values for arguments between 0 and p/2 are used by VF_cosecrpi2 and the other functions of that family and are also available to the user. Since the cosecant 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.

VectorLib Table of Contents  OptiVec home