COT()

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()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.