【分析解答题】
下列给定程序中,函数fun的功能是:计算如下公式
直到
,并且把计算结果作为函数值返回。例如,若形参e的值为le-3,则函数返回值为0.551690。 请在下画线处填入正确的内容并将下画线删除,使程序得出正确的结果。 注意:部分源程序给出如下。 不得增行或删行,也不得更改程序的结构! 试题程序: #include <stdio.h> double fun(double e) { int i, k; double s, t, x; s=0; k=1; i=2; /**********found**********/ x=___(1)___/4; /**********found**********/ while(x ___(2)___e) { s=s+k* x; k=k*(-1); t=2* i; /**********found**********/ x=___(3)___/(t* t); i++; } return s; } main() { double e=le-3; printf("\nThe result is: % f\n", fun(e)); }