C语言计算sinx的近似值

日期:2017-09-02 10:09:30 人气:1

C语言计算sinx的近似值

/*sinx=x-x^3/3!+x^5/5-x^7/7!...*/ #include #include #define ACCURARY 0.00000001 main() { int i=1,j=1,k,n=1,x; printf("sinx=x-x^3/3!+x^5/5-x^7/7!...\n请输入一个x\n"); scanf("%d",&x); dou
    A+
热门评论