浙大数值分析lab2

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最可怕的一道题,题目是这样的

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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值