tan()

Calculates the tangent of an angle.

Library Documentation

double tan(double x)

Compute the tangent of an angle, in radians.

Parameters:
  • x -

    The radian measure of the angle.

Return:

The tangent of x. There are no limits on the return value of this function.

Arduino Compatibility

The Maple version of tan() is compatible with Arduino.

Note that the Maple implementation comes from newlib, while Arduino’s is that of avr-libc.

See Also

License and Attribution

Portions of this page were adapted from the Arduino Reference Documentation, which is released under a Creative Commons Attribution-ShareAlike 3.0 License.