Click or drag to resize

Cot Function

X#
Calculate the cotangent of a value.

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

Parameters

nNum
Type: Usual
An angle in radians.

Return Value

Type: Float
The cotangent of the specified angle.
Remarks
Examples
This example uses Cot() to show that cotangent is the same as cosine over sine:
X#
1? Cot(1.5)                // 0.07
2? Cos(1.5)                // 0.07
3? Sin(1.5)                // 1.00
4? Cos(1.5) / Sin(1.5)        // 0.07
See Also