Tan

The tangent of an angle in radians.

Node id math/tan

The Tan node outputs the tangent of value, an angle in radians: the sine divided by the cosine, or the slope of a line at that angle.

Inputs

NameTypeDefaultNotes
valuenumber0

Outputs

NameTypeNotes
resultnumber

Behaviour

  • Radians. Multiply an angle in degrees by PI and divide it by 180 first.
  • Very large near a quarter turn. At π/2 (and every half turn from there) the tangent has no finite value. Because π can't be stored exactly, the result there is a huge number rather than Infinity.
  • Invalid math. The tangent of Infinity gives NaN, with no error.
  • Sin and Cos: the two parts of the tangent.
© 2026 Wirepaint