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()
Pingback: Harbour All Functions – S | Viva Clipper !
Pingback: Harbour Math Functions | Viva Clipper !