United States-English |
|
|
HP-UX Reference > Ssincos(3M)HP Integrity Server OnlyHP-UX 11i Version 3: February 2007 |
|
NAMEsincos(), sincosf(), sincosl(), sincosw(), sincosq() — functions that compute both sine and cosine SYNOPSIS#include <math.h> void sincos(double x, double *sptr, double *cptr); void sincosf(float x, float *sptr, float *cptr); void sincosl(long double x, long double *sptr, long double *cptr); void sincosw(extended x, extended *sptr, extended *cptr); void sincosq(quad x, quad *sptr, quad *cptr); DESCRIPTIONThese functions are available only for Integrity servers. sincos() stores the sine of x (x specified in radians) in the object pointed to by sptr and stores the cosine of x in the object pointed to by cptr. sincosf() is a float version of sincos(); it takes float and float * arguments. sincosl() is a long double version of sincos(); it takes long double and long double * arguments. sincosw() is an extended version of sincos(); it takes extended and extended * arguments. sincosq() is equivalent to sincosl() 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 sincosw() or sincosq(), 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 for HP Integrity servers at the following site: http://www.hp.com/go/fp. RETURN VALUEsincos(±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, sincos() stores NaN in the objects pointed to by its pointer arguments and raises the invalid exception. If x is NaN, sincos() stores NaN in the objects pointed to by its pointer arguments. When it raises no other exception, whether sincos() raises the inexact exception is unspecified. |
Printable version | ||
|