作业帮 > 综合 > 作业

有谁能把1 2 空填上的?或者说下 原表达式里是否有错误

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/01 20:47:39
有谁能把1 2 空填上的?或者说下 原表达式里是否有错误
/* Question:call a function f to compute the value of algebra polynomial
1.1 +2.2 * x +3.3 * x * x +4.4 * x * x * x +5.5 * x * x * x * when x = 1.7 */
#include
float f(float,float*,int);
void main()
{ float b[5]={1.1,2.2,3.3,4.4,5.5};
printf("%f\n",f(1.7,b,5));
}
float f( _______1________ )
{ float y=a[0],t=1; int i;
for(i=1;i
有谁能把1 2 空填上的?或者说下 原表达式里是否有错误
/* Question:call a function f to compute the value of algebra polynomial
1.1 +2.2 * x +3.3 * x * x +4.4 * x * x * x +5.5 * x * x * x * x?when x = 1.7 */
#include
float f(float,float*,int);
void main()
{ float b[5]={1.1,2.2,3.3,4.4,5.5};
printf("%f\n",f(1.7,b,5));
}
float f(float x,float a[],int n)
{ float y=a[0],t=1; int i;
for(i=1;i