随笔分类 -  算法与数据结构

摘要:3*x^4+6*x^3+2*x^2+5*x+6求值的过程为33*x + 63*x^2 +6*x+23*x^3 +6*x^2+2*x+53*x^4 +6*x^3+2*x^2+5*x+6#include <iostream>#include <stdlib.h>#include <stdio.h>using namespace std;int main(){ printf("多项式求值的Horner算法n"); printf("n说明:对于求多项式3*x^4+6*x^3+2*x^2+5*x+6当x=2 时的值,应该按以下输入n&qu 阅读全文
posted @ 2012-06-03 14:48 godjob 阅读(1051) 评论(0) 推荐(0)