Question: Q 1 Consider the nonlinear equation 2 x c o s ( 2 x ) - ( x - 2 ) 2 = 0 (

Q1 Consider the nonlinear equation
2xcos(2x)-(x-2)2=0
(a) Write the general term xn of the Newton's iteration sequence with an arbitrary
initial value x0 for the given equation.
(b) Write a Python program which computes the iterations of the Newton's method
starting with x0=3.63 until |xn+1-xn|<10-4 and prints the computed terms of the
sequence {xn} and the value of n for which |xn+1-xn|<10-4 holds.
(c) Return your solution file containing the solution of part (a), the Python code and
the output of your Python code.
Q2 Consider the definite integral
06dxx4+2.63
(a) Write the Composite Simpson's rule formula with 2M subintervals.
(b) Write a Python program which computes the approximate value with the Com-
posite Simpson's rule formula written in part (a), for M=1,2,3,4,5,6,7,8 and prints
the results as
M=k,Sk= computed value, for k=1,dots,8.

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!