Click or drag to resize

Tan Function

X#
Calculate the tangent of a number.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax
 FUNCTION Tan(
	nNum AS USUAL
) AS FLOAT
Request Example View Source

Parameters

nNum
Type: Usual
An angle in radians.

Return Value

Type: Float
The tangent of the specified angle.
Remarks
Examples
This example uses Tan() to calculate the tangent of 1.38 radians:
X#
1? Tan(1.38)                // 5.18
This example shows that the tangent is equal to the sine over the cosine:
X#
1? Sin(1.38)/Cos(1.38)        // 5.18
See Also