Arduino Programming Language: Tan

Name

tan()

Description

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

  • float

Returns

float : the tangent of the angle

Examples

double z=tan(3,14) // z=0.055;

Related Functions


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc