|
original poster
hbghlyj
posted 2023-4-30 20:14
失败的尝试
Last edited by hbghlyj 2024-9-22 14:47
例如$f(x)=x^3-3x+1$在$[-2,2]$上的根为$x_1<0<x_2<x_3$
二分法$[-2,2]\to[-2,0]\to[-2,-1]\to[-2,-1.5]\to\dots$会收敛到$x_1$
线性插值法
$(-2, -1), (2, 3)\Rightarrow f(x)\approx 1+x\Rightarrow x=-1$
$(-2, -1), (-1,3)\Rightarrow f(x)\approx -1 + 4 (2 + x)\Rightarrow x=-\frac74$
这样最终也会收敛到$x_1$
如何找到一个$f(x)$使二分法、线性插值法在区间$[a,b]$上求根都收敛, 但收敛到不同的根呢 |
|