sin

Synopsis

$ sin(n)

Calculate the sine of the argument. (answer in radians)

Parameters

n - the value (converted to a double) to apply this function to.

Returns

A double scalar.

Examples

$temp = sin(30); println("sin value of 30 radians is $temp"); $temp = sin(radians(30)); println("sin value of 30 degrees is $temp");

sin value of 30 radians is -0.9880316240928618 sin value of 30 degrees is 0.49999999999999994

See Also