def g(x): return (2*x+2)**(1/3) x=fpi(g,1/2,20)yields the solution \(1.76929235\) to 8 correct decimal places.
1 (b) Define \(g(x)=\ln(7-x)\). Using fpi.py as in part (a) returns the solution \(1.67282170\) to 8 correct decimal places.
1 (c) Define \(g(x)=\ln(4-\sin x)\). Using fpi.py as in part (a) returns the solution \(1.12998050\) to 8 correct decimal places.
3 (b) Iterate \(g(x)=(x+5/x)/2\) with starting guess \(1\). After 5 steps of FPI, the results is \(2.23606798\) to 8 correct places.
7 (b) Almost all numbers between \(1\) and \(2\).
7 (c) Any number greater than \(3\) or less than \(-1\) will work.