tanf


Tangent

[Classification]

Mathematical library

[Syntax]

#include <mathf.h>

float tanf(float x);

[Return value]

Returns the tangent of x.

If inputting +∞, tanf returns a NaN and sets macro EDOM to global variable errno.

If the solution is a denormal number, tanf sets macro ERANGE to global variable errno.

[Description]

This function calculates the cosine of x. Specify the angle in radian.