HP-UX Reference (11i v2 07/12) - 3 Library Functions A-M (vol 6)

c
cot(3M) cot(3M)
(Itanium(R)-based System Only)
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 Itanium-based systems.
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.
SEE ALSO
atan(3M), cos(3M), ctan(3M), sin(3M), tan(3M), math(5).
STANDARDS CONFORMANCE
These functions are not specified by any standard.
HP-UX 11i Version 2: December 2007 Update 1 Hewlett-Packard Company 215