sin() in C Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 12 Likes Like Report 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);Parametersangle: Angle in radians.Return ValueReturns the sine of the given radian angle which ranges between +1 to -1.Example of sin() C // C program to illustrate the sin() function #include <math.h> #include <stdio.h> int main() { double angle1 = 3.1415926; double angle2 = 10; // printing the sine value of angle1 and angle2 printf("sin(3.14) = %.2lf\n", sin(angle1)); printf("sin(10) = %.2lf", sin(angle2)); return 0; } Outputsin(3.14) = 0.00 sin(10) = -0.54 Comment K kartik Follow 12 Improve K kartik Follow 12 Improve Article Tags : Sorting C Programs DSA BubbleSort Explore DSA FundamentalsLogic Building Problems 2 min read Analysis of Algorithms 1 min read Data StructuresArray Data Structure 3 min read String in Data Structure 2 min read Hashing in Data Structure 2 min read Linked List Data Structure 2 min read Stack Data Structure 2 min read Queue Data Structure 2 min read Tree Data Structure 2 min read Graph Data Structure 3 min read Trie Data Structure 15+ min read AlgorithmsSearching Algorithms 2 min read Sorting Algorithms 3 min read Introduction to Recursion 15 min read Greedy Algorithms 3 min read Graph Algorithms 3 min read Dynamic Programming or DP 3 min read Bitwise Algorithms 4 min read AdvancedSegment Tree 2 min read Binary Indexed Tree or Fenwick Tree 15 min read Square Root (Sqrt) Decomposition Algorithm 15+ min read Binary Lifting 15+ min read Geometry 2 min read Interview PreparationInterview Corner 3 min read GfG160 3 min read Practice ProblemGeeksforGeeks Practice - Leading Online Coding Platform 6 min read Problem of The Day - Develop the Habit of Coding 5 min read Like