Tan

Description

Calculates the tangent of an angle.

Return value

A number; the tangent of an angle.

Category

Mathematical functions

Syntax

Tan(number) 

See also

Atn, ASin, Cos, Sin, Pi

Parameters

Parameter Description
number
Angle, in radians.
To convert an angle from degrees to radians, use the PI function, and multiply the degrees by PI/180.

Example

<h3>Tan Example</h3>
<p>Returns the tangent of an angle.
<p>Tan(1): <cfoutput>#Tan(1)#</cfoutput>
<p>Tan(Pi()/4): <cfoutput>#Tan(Pi()/4)#</cfoutput>

Comments