Arduino参考

Arduino参考 > Functions > Trigonometry > tan()
Trigonometry
专题

tan()

Calculates the tangent of an angle (in radians). The result will be between negative infinity and infinity.

Syntax

tan(rad)

Parameters

rad: The angle in radians. Allowed data types: float.

Returns

The tangent of the angle. Data type: double.