tan x computes the tangent of the angle x, where x is measured in degrees:
tan x
x
write tan 45
To compute the tangent in radians, you can use Math.tan instead:
Math.tan
write Math.tan PI/4
Other trigonometric functions include sin and cos.
sin
cos