Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

More Books

Students also viewed these Databases questions

Question

fuzzy clustering on a dataset which is a csv file

Answered: 1 week ago

Question

Writing a Strong Introduction

Answered: 1 week ago