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 > C

csin(3M)

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

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

csin(), csinf(), csinl(), csinw(), csinq() — complex sine functions

SYNOPSIS

#include <complex.h>

double complex csin(double complex z);

float complex csinf(float complex z);

long double complex csinl(long double complex z);

extended complex csinw(extended complex z);

quad complex csinq(quad complex z);

DESCRIPTION

These functions are available only for Integrity servers.

csin() returns the complex sine of z.

csinf() is a float complex version of csin(); it takes a float complex argument and returns a float complex result.

csinl() is a long double complex version of csin(); it takes a long double complex argument and returns a long double complex result.

csinw() is an extended complex version of csin(); it takes an extended complex argument and returns an extended complex result.

csinq() is equivalent to csinl() on HP-UX systems.

USAGE

To use these functions, compile with the default -Ae option. To use csinw() or csinq(), compile with the -fpwidetypes option. Make sure your program includes <complex.h>. Link in the math library by specifying -lm on the compiler or linker command line.

RETURN VALUE

csin(conj(z)) = conj(csin(z)) and csin is odd.

csin(+0+i0) returns +0+i0.

csin(+Inf+i0) returns NaN±i0 (where the sign of the imaginary part of the result is unspecified) and raises the invalid floating-point exception.

csin(+NaN+i0) returns NaN±i0 (where the sign of the imaginary part of the result is unspecified).

csin(Inf+iy) returns NaN+iNaN and raises the invalid floating-point exception, for positive finite y.

csin(NaN+iy) returns NaN+iNaN and optionally raises the invalid floating-point exception, for finite nonzero y.

csin(+0+iInf) returns +0+iInf.

csin(+x+iInf) returns +Inf(sin(y)+icos(y)), for positive finite x.

csin(+Inf+iInf) returns NaN±iInf (where the sign of the imaginary part of the result is unspecified) and raises the invalid floating-point exception.

csin(+NaN+iInf) returns +NaN±iInf (where the sign of the imaginary part of the result is unspecified).

csin(0+iNaN) returns 0+iNaN.

csin(x+iNaN) returns NaN+iNaN and optionally raises the invalid floating-point exception, for all nonzero numbers x.

csin(NaN+iNaN) returns NaN+iNaN.

ERRORS

No errors are defined.

STANDARDS CONFORMANCE

csin(), csinf(), csinl() : ISO/IEC C99 (including Annex G, ``IEC 60559-compatible complex arithmetic'')

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