Name
tan function — Computes tangent
Synopsis
float tan(float x) double tan(double x) long double tan(long double x)
The tan
function returns
the tangent of its argument. The standard does not specify the
result when the tangent is undefined (that is, when x
is kπ +π/2 for any integer k), but a reasonable result is a range
error. Due to the nature of the tangent function, the sign of the
return value (HUGE_VAL
) can be
positive or negative.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.