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

cot(3M)

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

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

cot(), cotf(), cotl(), cotw(), cotq() — cotangent functions

SYNOPSIS

#include <math.h>

double cot(double x);

float cotf(float x);

long double cotl(long double x);

extended cotw(extended x);

quad cotq(quad x);

DESCRIPTION

These functions are available only for Integrity servers.

cot() returns the cotangent of x (x specified in radians).

cotf() is a float version of cot(); it takes a float argument and returns a float result.

cotl() is a long double version of cot(); it takes a long double argument and returns a long double result.

cotw() is an extended version of cot(); it takes an extended argument and returns an extended result.

cotq() is equivalent to cotl() 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 cotw() or cotq(), 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.

RETURN VALUE

cot(±0) returns ±INFINITY.

If x is ±INFINITY, cot() returns NaN and raises the invalid exception.

x is NaN, cot() returns NaN.

When it raises no other exception, whether cot() raises the inexact exception is unspecified.

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.