HP-UX Reference (11i v2 04/09) - 3 Library Functions N-Z (vol 7)
s
sincosd(3M) sincosd(3M)
(Itanium(R)-based System Only)
NAME
sincosd( ), 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);
DESCRIPTION
These 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 dou-
ble * arguments.
sincosdw() is an extended version of sincosd(); it takes extended and extended * argu-
ments.
sincosdq() is equivalent to sincosdl() on HP-UX systems.
USAGE
To 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 VALUE
sincosd(±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.
ERRORS
No errors are defined.
SEE ALSO
acosd(3M), asind(3M), atand(3M), atan2d(3M), cosd(3M), sincos(3M), sind(3M), tand(3M), math(5).
STANDARDS CONFORMANCE
These functions are not specified by any standard.
HP-UX 11i Version 2: September 2004 − 1 − Hewlett-Packard Company Section 3−−989