Calculate the sine of the argument. (answer in radians)
n - the value (converted to a double) to apply this function to.
A double scalar.
$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