程序设计:定义一个函数,计算多项式的值a0+a1*x+a2*x*x……+a9*x*x*x*x*x*x*x*x*x的值.
程序设计:定义一个函数,计算多项式的值a0+a1*x+a2*x*x……+a9*x*x*x*x*x*x*x*x*x的值.
定义一个函数,计算多项式的值a0+a1*x+a2*x*x……+a9*x*x*x*x*x*x*x*x*x的值.其中a[10]={2.3, 3.2, 7,-2.5,8,2.9,5.3,5,3.7,3.2,},急,谢啦!
定义一个函数,计算多项式的值a0+a1*x+a2*x*x……+a9*x*x*x*x*x*x*x*x*x的值.其中a[10]={2.3, 3.2, 7,-2.5,8,2.9,5.3,5,3.7,3.2,},急,谢啦!
其他人气:693 ℃时间:2020-03-26 16:49:54
优质解答
#include #include void main(){double a[10]={2.3,3.2,7,-2.5,8,2.9,5.3,5,3.7,3.2};double x=1.2;double sum=0;int i;sum=a[9];for(i=8;i>=0;i--) /*秦九韶的《数书九章》*/sum=sum*x+a[i];printf("x=%lf\nsum=%lf...
我来回答
类似推荐
- x+x^2+x^3+…+x^9+x^10=a0+a1(1+x)+a2(1+x)^2+…a9(1+x)9+a10(1+x)^10,求a9
- (x+1)^9=a9x^+a8x^8+```+a1x+a0,求a0+a1+a2+```+a9的值
- (x^2+2x+2)^5=a0+a1(x+1)+a2(x+2)^2+……+a9(x+1)^9+a10(x+1)^10
- 若多项式x3+x10=a0+a1(x+1)+…+a9(x+1)9+a10(x+1)10,则a9=( ) A.9 B.10 C.-9 D.-10
- 若多项式x+x10=a0+a1(x+1)+…+a9(x+1)9+a10(x+1)10,那么a0+a2+…+a6+a8=_.
猜你喜欢
- 1小六英语 连词成句 we of a fun day lot every have _______________________________________________
- 2小男孩问明天的天气会怎么样用英语怎么说
- 3DNA.RNA合成反映特点
- 4原子结构图怎么画
- 5is that your brother 改为复数
- 6钱塘江大潮是怎样的景象
- 7The recitation was kind of boring and l liked the cross talk better
- 8英语作文learn to share 200字左右要独一无二的,不得从别处抄来的,有急用!
- 9王华在书店花9元买了一本打六折的书 这本书的原价是()元 算式
- 10一个正方体的截面不可能是什么?