Double-precision floating point (±1.7E±308, ~15 decimal digits)
1st Parameter
The angle in radians for which the sine value is to be calculated.
Read more about parameters of sin in parameters section
The sinfunction in C language Calculates the sine of the specified angle in radians.
The sin function computes the sine of x (measured in radians). A radian is the angle subtended at the center of a circle by an arc equal in length to the radius. The sin function is periodic with a period of 2π radians.
The sinfunction takes 1
parameter:
•
double `x`: The angle in radians for which the sine value is to be calculated.
Calculates the sine of the given angle `x`, where `x` is specified in radians. Returns the result as a `double`. The result lies in the range [-1, 1].
The sin function return value :
Returns the sine of x
If x is infinite, a domain error occurs and the function returns NaN
If x is NaN, NaN is returned
Output
This example calculates the sine of 30 degrees (converted to radians).