http://pta.patest.cn/pta/test/13/exam/3/question/468
#include <stdio.h>
#include <math.h>
double funcos( double e, double x );
int main() {
double e, x;
scanf("%lf %lf", &e, &x);
printf("cos(%.2f) = %.6f\n", x, funcos(e, x));
return 0;
}
double funcos( double e, double x ) {
double sum=0,d=100;
int i=0,j;
//注意此处为坑,必须为double型不能为整型,整型精度不够
double cj;
int count=0;