霍纳(Horner)规则是采用最少的乘法运算策略,求多项式的值。
霍纳(Horner)规则是采用最少的乘法运算策略,求多项式的值。算法思想:
利用递归horner(list, n, i+1, x) * x + list[i])求解。#include <stdlib.h>
#include <stdio.h>
#include <time.h>#define MAX_SIZE 101float horner(float [], int, int, float);i
原创
2015-11-12 20:37:24 ·
728 阅读 ·
0 评论