已知求正弦 sin(x) 的近似值的多项式公式为: sin(x) = x - x 3 /3! + x 5 /5! - x 7 /7!+ …… + (-1) n x 2n+1 /(2n+1)! + … 编写程序,要求输入 x (单位是弧度)和ε,按上述公式计算 sin(x) 的近似值,要求计算的误差小于给定的ε。 这个程序为什不对呢,正确的是什么 #include <stdio.h> #include <math.h> main(void) { float x,e,s,d,n; n=1; s=0; scanf("f%f%",&x,&e); d=fabs(s-sin(x)) while(d>e) s+=(pow(x,n))/(n!)-(pow(x,n+2))/((n+2)!); n+=4; printf("f%\n",&s); }