calculate the sine of an angle
#include <math.h> double sin( double x );
The sin() function computes the sine of x (measured in radians). An argument with a large magnitude may yield a result with little or no significance.
The sine value.
#include <stdio.h> #include <math.h> void main() { printf( "%f\n", sin(.5) ); }
produces the output:
0.479426
ANSI
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
acos(), asin(), atan(), atan2(), cos(), tan()