sind

OpenTuring

sindsine function (degrees)

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

Execute  

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

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

See also predefined unit Math.