TAN()

TAN()

Tangent of the argument

Syntax

      TAN( nRadiant ) -> nTangent

Arguments

<nRadiant> an angle size given in radiants

Returns

<nTangent> the tangent of <nRadiant>

Description

The function TAN() calculates the tangent 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 TAN() function is the counterkathede-ankathede-ratio of a right-angled triangle, or, tan(x) = sin(x)/cos(x).

Examples

      ? tan( 0.0 ) // --> 0.0
      ? tan( 1.0 ) // --> 1.5574...

Tests

      tan( 0.0 ) == 0.0
      tan( PI() / 4 ) == 1
      tan( PI() ) == 0.0

Compliance

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

Platforms

All

Files

Source is trig.c, library is libct.

Seealso

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

2 responses to “TAN()

  1. Pingback: Harbour All Functions – T | 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 )

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.