function sin
Returns the trigonometric sine of its argument. The returned value will be real, complex, or a matrix, depending on the argument. By default, the argument is in radians. This can be changed by specifying the switch /deg.
Syntax
result = sin(angle [, /deg])
Arguments
angle: | a number (integer, real, complex) or a matrix, specifying the angle for which the sine is to be calculated. If X is a matrix, a matrix of the same size is returned where each element represents the result of the operation. |
Switches
/deg: | The argument is in degrees |
Examples
To find the sine of the angle 90 degrees, type:
print sin(90, /deg)
See also
function cos
function tan
category index: trigonometry