9951 explained code solutions for 126 technologies


cGet the sine and cosine of a number


#include <math.h>
sin(x);
cos(x);ctrl + c
include <math.h

Name of library to be included

sin(x)

Function to get the sine of x in radians

cos(x)

Function to get the cossine of x in radians