有谁能把1 2 空填上的?或者说下 原表达式里是否有错误/* Question:call a function f to compute the value of algebra polynomial1.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*
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 12:43:15
有谁能把1 2 空填上的?或者说下 原表达式里是否有错误/* Question:call a function f to compute the value of algebra polynomial1.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*
有谁能把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 polynomial1.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*
/* 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