Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > S

sincosd(3M)

HP Integrity Server Only
HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » 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 Integrity servers.

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 for HP Integrity servers at the following site: http://www.hp.com/go/fp.

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.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.