Example: sin

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));
Output:
Action.c(9): Sine of 90.000000 deg = 1.000000