Question: Problem 3 . ( Fixed point method ) We consider the solution of the equation c o s ( e - x ) = 2

Problem 3.(Fixed point method)
We consider the solution of the equation
cos(e-x)=2x2
a) Show that the following fixed point method
x=g(x) with g(x)=cos2(e-x)4
has a unique solution hat(x)0.
b) If you run the code below, you will obtain a value x that is a numerical approximation
of hat(x). Provide an upper bound for the error e:=|hat(x)-x|.
import numpy as np
def g(x) :
return np.cos(np*exp(-x))****24
x=0
x?old =1
while np.abs old {:-x)>1e-6 :
x?old =x
x=g(x)
print (x)
 Problem 3.(Fixed point method) We consider the solution of the equation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!