Question: Please help me with python code for part b. Pleasehelp me implement it over multiple iterrations. def g1(x): a = ((x**2)+2)/3 return a def g2(x):
Please help me with python code for part b. Pleasehelp me implement it over multiple iterrations.
def g1(x): a = ((x**2)+2)/3 return a
def g2(x): a1 = (3*x-2)**0.5 return a1 def g3(x): a2 = 3-2/x return a2
def g4(x): a3 =((x**2)-2)/((2*x-3)) return a3
x=2
print("g1(x) =" , g1(x)) print("g2(x) =" , g2(x)) print("g3(x) =" , g3(x)) print("g4(x) =" , g4(x))
Problem 2 For the equation f(x) = x2-3x+2=0 each of the following functions yields an equivalent fixed-point problem: 81 (x) = (x2 + 2)/3 82(x) = V3x-2 83x)3-2/x 84(x) = (x2-2)/(2-3) Analyze the convergence properties of each of the corresponding fixed-point iteration schemes for the root x = 2 by considering l8 (2)1. b. Confirm your analysis by implementing each of the schemes and verifying its convergence (or lack thereof) and approximate conver- gence rate. Problem 2 For the equation f(x) = x2-3x+2=0 each of the following functions yields an equivalent fixed-point problem: 81 (x) = (x2 + 2)/3 82(x) = V3x-2 83x)3-2/x 84(x) = (x2-2)/(2-3) Analyze the convergence properties of each of the corresponding fixed-point iteration schemes for the root x = 2 by considering l8 (2)1. b. Confirm your analysis by implementing each of the schemes and verifying its convergence (or lack thereof) and approximate conver- gence rate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
