Share this page:

C Language: tan function
(Tangent)

In the C Programming Language, the tan function returns the tangent of x.

Syntax

The syntax for the C Language tan function is:

double tan(double x);

Parameters or Arguments

x is a value expressed in radians (not degrees).

Returns

The tan function returns the tangent of x, measured in radians.

Required Header

In the C Language, the required header for the tan function is:

#include <math.h>

Applies To

In the C Language, the tan function can be used in the following versions:

  • ANSI/ISO 9899-1990

Similar Functions

Other C functions that are similar to the tan function: