p (OptiVec vector function)">p">
 VF_cotrpi VD_cotrpi VE_cotrpi
 VF_cotrpi2 VD_cotrpi2 VE_cotrpi2
 VF_cotrpi3 VD_cotrpi3 VE_cotrpi3
 Function Cotangent function of rational multiples of p
 Syntax C/C++ #include int VF_cotrpi( fVector Y, iVector P, ui size, int q ); int VF_cotrpi2( fVector Y, iVector P, ui size, int q ); int VF_cotrpi3( fVector Y, iVector P, ui size, int q ); C++ VecObj #include int vector::cotrpi( const vector& P, int q ); int vector::cotrpi2( const vector& P, int q ); int vector::cotrpi3( const vector& P, int q ); Pascal/Delphi uses VFmath; function VF_cotrpi( Y:fVector; P:iVector; size:UIntSize; q:Integer ): IntBool; function VF_cotrpi2( Y:fVector; P:iVector; size:UIntSize; q:Integer ): IntBool; function VF_cotrpi3( Y:fVector; P:iVector; size:UIntSize; q:Integer ): IntBool;
 CUDA function C/C++ #include int cudaVF_cotrpi( fVector d_Y, iVector d_P, ui size, int q ); int cudaVF_cotrpi2( fVector d_Y, iVector d_P, ui size, int q ); int cudaVF_cotrpi3( fVector d_Y, iVector d_P, ui size, int q ); int VFcu_cotrpi( fVector h_Y, iVector h_P, ui size, int q ); int VFcu_cotrpi2( fVector h_Y, iVector h_P, ui size, int q ); int VFcu_cotrpi3( fVector h_Y, iVector h_P, ui size, int q ); CUDA function Pascal/Delphi uses VFmath; function cudaVF_cotrpi( d_Y:fVector; d_P:iVector; size:UIntSize; q:Integer ): IntBool; function cudaVF_cotrpi2( d_Y:fVector; d_P:iVector; size:UIntSize; q:Integer ): IntBool; function cudaVF_cotrpi3( d_Y:fVector; d_P:iVector; size:UIntSize; q:Integer ): IntBool; function VFcu_cotrpi( h_Y:fVector; h_P:iVector; size:UIntSize; q:Integer ): IntBool; function VFcu_cotrpi2( h_Y:fVector; h_P:iVector; size:UIntSize; q:Integer ): IntBool; function VFcu_cotrpi3( h_Y:fVector; h_P:iVector; size:UIntSize; q:Integer ): IntBool;
 Description Yi = cot( (Pi / q) * p ) The cotangent of fractional multiples of p is calculated. There are three versions: VF_cotrpi is for general use with any arbitrary denominator q. If q is a power of 2, VF_cotrpi2 should be used which is a highly optimized version using a look-up table. If q is a multiple of 3, VF_cotrpi3 should be used. VF_cotrpi2 and VF_cotrpi3 also work with q values they are not optimized for; in this case, however, memory space is wasted for the tables.
 Error handling SING errors occur if Pi / q is a whole number. The default result is 0.0 (which is the mean of +HUGE_VAL and -HUGE_VAL); q must be non-zero; this is, however, not tested for.
 Return value FALSE (0), if no error occurred, otherwise TRUE (non-zero).