ATAN()

ATAN()

Arcus tangent of the argument

Syntax

      ACOS( nTangent ) -> nRadiant

Arguments

<nTangent> the tangent of an angle

Returns

<nRadiant> the angle whose tangent is <nTangent>

Description

The function ATAN() is the inverse function of TAN(). It takes a tangent value and returns the smallest(!) angle whose tangent equals to the argument. The return value is given in radiants between -PI()/2 and PI()/2 (full angle equals 2*Pi – see DTOR() if you need to convert it into degress).

Examples

      ? atan( 0.0 ) // --> 0.0
      ? atan( 0.5 ) // --> 0.4636...

Tests

      atan( 0.0 ) == 0.0
      atan( 1.0 ) == PI() / 4
      atan( 0.0 ) == 0.0 // and not PI(), although tan( PI() ) == 0.0 !

Compliance

ATAN() is compatible with CT3’s ATAN().

Platforms

All

Files

Source is trig.c, library is libct.

Seealso

SIN(), COS(), TAN(), COT(), ASIN(), ACOS(), ATAN(), SINH(), COSH(), TANH(), RTOD(), DTOR(), PI()

Advertisements

2 responses to “ATAN()

  1. Pingback: Harbour All Functions – A | Viva Clipper !

  2. Pingback: Harbour Math Functions | Viva Clipper !

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s