SIN()

SIN()

Sine of the argument

Syntax

      SIN (nRadiant) -> nSine

Arguments

<nRadiant> an angle size given in radiants

Returns

<nSine> the sine of <nRadiant>

Description

The function SIN() calculates the sine 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 SIN() function is the counterkathede-hypotenuse-ratio of a right-angled triangle.

Examples

      ? sin( 0.0 ) // --> 0.0
      ? sin( 1.0 ) // --> 0.8414...

Tests

      sin( 0.0 ) == 0.0
      sin( PI() / 4 ) == sqrt( 1 / 2 )
      sin( PI() / 2 ) == 1.0
      sin( PI() ) == 0.0

Compliance

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

Platforms

All

Files

Source is trig.c, library is libct.

Seealso

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

Advertisements

2 responses to “SIN()

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