|
|
HP-UX Reference > Ssincosd(3M)Itanium(R)-based System OnlyHP-UX 11i Version 2: December 2007 Update |
|
NAMEsincosd(), sincosdf(), sincosdl(), sincosdw(), sincosdq() — functions that compute both sine and cosine of an argument specified in degrees SYNOPSIS#include <math.h> void sincosd(double x, double *sptr, double *cptr); void sincosdf(float x, float *sptr, float *cptr); void sincosdl(long double x, long double *sptr, long double *cptr); void sincosdw(extended x, extended *sptr, extended *cptr); void sincosdq(quad x, quad *sptr, quad *cptr); DESCRIPTIONThese functions are available only for Itanium-based systems. sincosd() stores the sine of x (x specified in degrees) in the object pointed to by sptr and stores the cosine of x in the object pointed to by cptr. sincosdf() is a float version of sincosd(); it takes float and float * arguments. sincosdl() is a long double version of sincosd(); it takes long double and long double * arguments. sincosdw() is an extended version of sincosd(); it takes extended and extended * arguments. sincosdq() is equivalent to sincosdl() on HP-UX systems. USAGETo use these functions compile either with the default -Ae option or with the -Aa and the -D_HPUX_SOURCE options. To use sincosdw() or sincosdq(), compile also with the -fpwidetypes option. To use any of these functions, make sure your program includes <math.h>, and link in the math library by specifying -lm on the compiler or linker command line. For more information, see the HP-UX Floating-Point Guide. RETURN VALUEsincosd(±0,sptr,cptr) stores ±0 in the object pointed to by sptr and 1 in the object pointed to by cptr. If x is ±INFINITY, sincosd() stores NaN in the objects pointed to by its pointer arguments and raises the invalid exception. If x is NaN, sincosd() stores NaN in the objects pointed to by its pointer arguments. SEE ALSOacosd(3M), asind(3M), atand(3M), atan2d(3M), cosd(3M), sincos(3M), sind(3M), tand(3M), math(5). |
|