C++ Programming/Code/Standard C Library/Functions/tan

From Wikibooks, open books for an open world
Jump to navigation Jump to search

tan[edit | edit source]

#include <cmath>
double tan( double arg );

The tan() function returns the tangent of arg, where arg is given in radians. If arg is infinite, tan() will return NAN and raise a floating-point exception.

Related topics
acos - asin - atan - atan2 - cos - cosh - sin - sinh - tanh