atanpi(3)

atanpi3

Half-cycle arc tangent functions

Usage

#include <math.h>

double

atanpi(double x);

float

atanpif(float x);

long double

atanpil(long double x);

Library

Math Library (libm, -lm)

Overview

The atanpi(), atanpif(), and atanpil() functions compute the principal value of the arc tangent of x, divided by , thus measuring the angle in half-cycles.

Return values

The atanpi(), atanpif(), and atanpil()
functions return values in the range [-1/2, +1/2].

Standards

The atanpi(), atanpif(), and atanpil() functions conform to ISO/IEC 9899:2024 (“ISO C23”).

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.