Sin
Syntax
double sin(double x);
Function
Calculates sine of x.
Parameters
Value in radians whose sine is to be calculated.
Return Values
Sine of x.
double x;x = sin(PI); // Result 0
[cos](/en/syntax/general/math/cos) | [exp](/en/syntax/general/math/exp) | [sqrt](/en/syntax/general/math/sqrt)