Advertisements
COT()
Cotangent of the argument
Syntax
COT( nRadiant ) -> nCotangent
Arguments
<nRadiant> an angle size given in radiants
Returns
<nCotangent> the cotangent of <nRadiant>
Description
The function COT() calculates the cotangent of an angle whose size is given in radiants (full angle equals 2*Pi – see DTOR() for angle size given in degress). A common geometric interpretation of the COT() function is the ankathede-counterkathede-ratio of a right-angled triangle, or, cot(x) = cos(x)/sin(x)=1/tan(x).
Examples
? cot( 1.0 ) // --> 0.6420...
Tests
cot( PI() / 4 ) == 1 cot( PI() / 2 ) == 0
Compliance
COT() is compatible with CT3’s COT().
Platforms
All
Files
Source is trig.c, library is libct.
Seealso
SIN(), COS(), TAN(), ASIN(), ACOS(), ATAN(), ATN2(), SINH(), COSH(), TANH(), RTOD(), DTOR(), PI()
Advertisements