Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#sind

##Syntax sind ( r : real ) : real

##Description The sind function is used to find the sine of an angle given in degrees. For example, sind (0) is 0.

##Example This program prints out the sine of 30, 60, 90, up to 360 degrees.

    for i : 1 .. 12
        const angle := i * 30
        put "Sin of ", angle, " is ", sind ( angle )
    end for

##See also the cosd.html and tand.html functions for calculating cosine and tangent.

the sin.html function which finds the sine of an angle given in radians. (2p radians are the same as 360 degrees.)

See also predefined unit mathmodule.html.

Clone this wiki locally