sin
| Mathematics Functions |
Computes the sine of an angle in radians.
double sin( double x);
| x | An angle expressed in radians. |
Return Values
The sine of the specified angle.
Example
The following example calculates the sine of 90 degrees using sin.
#include <math.h>
double x = 90;
lr_output_message ("Sine of %lf deg = %lf\n", x, sin(x * PI/180));Example: Output:
Action.c(9): Sine of 90.000000 deg = 1.000000

