2012年3月11日

利用霍纳规则求多项式的值(递归)

摘要: 7 #include <stdio.h> 8 #include <stdlib.h> 9 #define LEN 3 10 int hornor(int [],int,int); 11 int main() 12 { 13 int a[3]={1,2,3};//数组表示多项式的系数 14 int x=2;//多项式的自变量值 15 int result=0;//存放结果 16 result = hornor(a,0,2); 17 printf("%d\n",result); 18 exit(0); 19 } 20... 阅读全文

posted @ 2012-03-11 15:05 阿杜的世界 阅读(403) 评论(0) 推荐(0)

导航