最可怕的一道题,题目是这样的
Root of a Polynomial
A polynomial of degree nnn has the common form as p(x)=cn*x^n+cn−1*x^n−1+⋯+c1*x+c0. Your task is to write a function to find a root of a given polynomial in a given interval.
Format of function:
double Polynomial_Root(int n, double c[], double a, double b, double EPS);
where int n is the degree of the polynomial; double c[] is an array ofn+1 coefficients cnc_nc

这篇博客讨论了在浙大数值分析实验中遇到的复杂问题,即如何在给定区间内找到一个多项式的一个根。文章指出牛顿法在某些情况下可能无法收敛或收敛到非最优解,提出了需要在区间内等间距选择点进行牛顿法,并通过比较函数值来找到最精确解的策略。
3175

被折叠的 条评论
为什么被折叠?



