D Documentation  
sin
real sin(real x)

Returns the sinus of x (radians).

If x is ±INFINITY, the function returns -NAN.

Example:
//don't forget to import std.stdio and std.math :-)

writefln("sin(0)    is %f",sin(0));
writefln("sin(PI/2) is %f",sin(PI/2));
writefln("sin(PI/4) is %f",sin(PI/4));
writefln("sin(INF)  is %f",sin(float.infinity));
writefln("sin(-INF) is %f",sin(-float.infinity));

Output:
sin(0)    is 0.000000
sin(PI/2) is 1.000000
sin(PI/4) is 0.707107
sin(INF)  is -nan
sin(-INF) is -nan

See also:
std.math - Constants (PI)
Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.