tail head cat sleep
QR code linking to this page

Manual Pages  — TANPI

NAME

tanpi, tanpif, tanpil – half-cycle tangent functions

CONTENTS

LIBRARY

Math Library (libm, -lm)

SYNOPSIS

#include <math.h>

double
tanpi(double x);

float
tanpif(float x);

long double
tanpil(long double x);

DESCRIPTION

The tanpi(), tanpif(), and tanpil() functions compute the tangent of π &#181; x and measure angles in half-cycles.

RETURN VALUES

The tanpi(), tanpif(), and tanpil() functions returns tan(π &#181; x). If |x| ≥ 2^(p - 1) where p is the floating-point precision of x, then the returned value is &#177;0 and it has no significance.

SPECIAL VALUES

tanpi(&#177;0) returns &#177;0.
tanpi(&#177;n) returns &#177;0 for positive integers n.
tanpi(&#177;n/2) returns NaN for n > 0 and raises an FE_INVALID exception.
tanpi(&#177;∞) return an NaN and raises an FE_INVALID exception.
tanpi(NaN) return an NaN and raises an FE_INVALID exception.

SEE ALSO

cos(3), cospi(3), fenv(3), math(3), sin(3), sinpi(3), tan(3)

AUTHORS

The half-cycle trignometric functions were written by Steven G. Kargl <Mt kargl@FreeBSD.org>.

STANDARDS

These functions conform to IEEE Std 754&#174;-2008 , dqIEEE Standard for Floating-Point Arithmeticdq and to ISO/IEC TS 18661-4 , dqInformation technology &#151; Programming languages, their environments, and system software interfaces &#151; Floating-point extensions for Cdq &#151; Part 4: Supplementary functions.


TANPI (3) April 1, 2017

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology.
— The Unix Haters' handbook