Cot Function | |
Calculate the cotangent of a value.
Namespace:
XSharp.RT
Assembly:
XSharp.RT (in XSharp.RT.dll) Version: 2.21
Syntax FUNCTION Cot(
nNum AS USUAL
) AS FLOAT
public static Float Cot(
Usual nNum
)
Request Example
View SourceParameters
- 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:
1? Cot(1.5)
2? Cos(1.5)
3? Sin(1.5)
4? Cos(1.5) / Sin(1.5)
See Also