Numerical methods
Warm-upHumanBisection is started on to find as a root of . After halvings we report the midpoint of the current interval. What is the smallest for which Theorem 3 guarantees an error of at most ?
Bisection is started on to find as a root of . After halvings we report the midpoint of the current interval. What is the smallest for which Theorem 3 guarantees an error of at most ?
Newton's method for is . Starting from , compute exactly , and in lowest terms. Enter the numerator .
For large (say ), which formula computes most accurately in floating point?
Newton's method for (the real cube root) gives and diverges from every , although . Which hypothesis of Theorem 4 fails?
Apply Simpson's rule with strips () to . What value does it give?
Which statements are true? (Choose all that apply.)
In binary64 arithmetic, approximately which step minimises the total error of the forward difference for a typical smooth function with , of moderate size?
With IsBinary64 x meaning " is a positive binary64 number", which Lean statement says that is the gap between and the next larger binary64 number?
Write newton(f, df, x0, tol=1e-12, max_iter=50) that runs Newton's method and returns (x, n): the first iterate with abs(f(x)) <= tol and the number of steps taken. If a derivative is exactly 0, or max_iter steps pass without success, return (None, n).