level 1
编程题目
用c或c++
计算:
f(x)=3x^11+8x^9-6x^6-9x^4+5x^2+20
其中
x的值输入获得
在线等
今天早上急用
2009年12月23日 17点12分
1
level 5
运用math.h下的pow函数不是很容易就做到了吗`?
2009年12月24日 10点12分
2
level 1
想用数组实现
我现在有一个程序在手里
谁能帮忙
一句一句滴帮我解释下
程序在下面
2009年12月26日 02点12分
3
level 1
#include<stdio.h>
#define N 12
double yvdxs(double a[N],double x)
{int i;
double p;
p=a[N-1];
for(i=N-2;i>=0;i--)
p=p*x+a[i];
return(p);
}
main()
{ int i;
float x;
double p;
static double a[]={20,0,5,0,-9,0,-6,0,0,8,0,3};
printf("x=");
scanf("%f",&x);
p=yvdxs(a,x);
printf("p=%f\n",p);
}
2009年12月26日 02点12分
4