Numerical Analysis MOC #input permanent math
Chapter 3 Rootfinding
3.1 The Bisection method
也就是俗称的二分法?假设在定义域 中,,在这里 肯定是有变号的,在 中必变号过一次,又因为是连续的,也就是一定出现过至少一次。The Bisection method 就是通过进行一些流程来找出什么时候变号了。 在此基础上,引入 error tolerance 。
- Define
- If , then accept as root and stop
- If sin * ,then set . Otherwise, set . Return to step 1
感想:很像 C 语言的题…
每进行一次这样的运算,整个定义域都会减半。第二步的检验迟早都会成立。 例题 3.1.1
3.1.1 Error Bounds
“误差范围” 由上,很容易得出 , 那么迭代下去就会变成: