Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 rateStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started