HPlogo HP-UX Reference > S

sincosd(3M)

Itanium(R)-based System Only
HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

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 double * arguments.

sincosdw() is an extended version of sincosd(); it takes extended and extended * arguments.

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.

STANDARDS CONFORMANCE

These functions are not specified by any standard.