Degree から Radian 単位への変換

Degree から Radian 単位への変換list_43.c)
#include <stdio.h>
#include <math.h>

double DEG2RAD(double rad){return M_PI*rad/180.;}

int main()
{
    double i;
    printf("**asin, acos:\n");
    for(i=-1;i<1;i+=0.5){
        printf("%lf %lf %lf\n",i,asin(DEG2RAD(i)),acos(DEG2RAD(i)));
    }
    return 0;
}
実行結果
Gami[101]% list_43.exe
**asin, acos:
-1.00000 -0.01745 1.58825
-0.50000 -0.00873 1.57952
0.00000 0.00000 1.57080
0.50000 0.00873 1.56207
Gami[102]%
inserted by FC2 system