VOOZH about

URL: https://www.geeksforgeeks.org/dsa/sin-in-c/

⇱ sin() in C - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

sin() in C

Last Updated : 23 Jul, 2025

The sin() function in C is a standard library function to find the sine value of the radian angle. It is used to evaluate the trigonometric sine function of an angle. It takes the radian angle as input and returns the sin of that angle. It is defined inside <math.h> header file.

Syntax of sin()

The syntax of sin() function in C is:

double sin(double angle);

Parameters

  • angle: Angle in radians.

Return Value

  • Returns the sine of the given radian angle which ranges between +1 to -1.

Example of sin()


Output
sin(3.14) = 0.00
sin(10) = -0.54








Comment
Article Tags: