tan tangent in degrees

tan x computes the tangent of the angle x, where x is measured in degrees:

write tan 45

To compute the tangent in radians, you can use Math.tan instead:

write Math.tan PI/4

Other trigonometric functions include sin and cos.