angle in radians (not degrees)
sine of x
Results are undefined if |x| >= 264.
import std.math.constants : PI; import std.stdio : writefln; void someFunc() { real x = 30.0; auto result = sin(x * (PI / 180)); // convert degrees to radians writefln("The sine of %s degrees is %s", x, result); }
Returns sine of x. x is in radians.