VF_cotVD_cotVE_cot
VFx_cotVDx_cotVEx_cot
FunctionCotangent function
Syntax C/C++#include <VFmath.h>
int VF_cot( fVector Y, fVector X, ui size );
int VFx_cot( fVector Y, fVector X, ui size, float A, float B, float C );
C++ VecObj#include <OptiVec.h>
int vector<T>::cot( const vector<T>& X );
int vector<T>::x_cot( const vector<T>& X, const T& A, const T& B, const T& C );
Pascal/Delphiuses VFmath;
function VF_cot( Y, X:fVector; size:UIntSize ): IntBool;
function VFx_cot( Y, X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_cot( fVector d_Y, fVector d_X, ui size );
int cudaVFx_cot( fVector d_Y, fVector d_X, ui size, float A, float B, float C );
int cusdVFx_cot( fVector d_Y, fVector d_X, ui size, float *d_A, float *d_B, float *d_C );
int VFcu_cot( fVector h_Y, fVector h_X, ui size );
int VFxcu_cot( fVector h_Y, fVector h_X, ui size, float A, float B, float C );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_cot( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVFx_cot( d_Y, d_X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
function cusdVFx_cot( d_Y, d_X:fVector; size:UIntSize; d_A, d_B, d_C:PSingle ): IntBool;
function VFcu_cot( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFxcu_cot( h_Y, h_X:fVector; size:UIntSize; A, B, C:Single ): IntBool;
Descriptionsimple versions: Yi = cot ( Xi )
expanded versions: Yi = C * cot ( A*Xi+B )
The cotangent is defined as the inverse of the tangent (not to be mistaken for the arcus function arctan!) For large values of Xi, round-off error becomes appreciable; if the Xi values are representable as rational multiples of p, it is better to use VF_cotrpi than VF_cot.
Error handlingFor TLOSS precision errors, the default result is 0.0 (which is the mean of +HUGE_VAL and -HUGE_VAL); for SING and OVERFLOW errors, the default result is ±HUGE_VAL.
Return valueFALSE (0), if no error occurred, otherwise TRUE (non-zero).
See alsoVF_cot2,   VF_cotrpi,   VF_coth,   VF_atan,   VF_atan2,   tan

VectorLib Table of Contents  OptiVec home