[SOLVED] AMITH350-Assignment 04

Programming resource
Digital learning resource
Category:
βœ“ Practical programming resource
βœ“ Suitable for guided study and reference
βœ“ Tutor guidance available when needed

Description

5/5 - (1 vote)
No. Problem
1. Use the Bisection method to find an approximation with accuracy 10βˆ’5,Β  to a value in [0.5, [1].5] for 𝑓(π‘₯) = ex βˆ’ 2 βˆ’ cos(⁑ex βˆ’ 2). Show your answer in a table with headings as follows: β€œIteration No.”, β€œa”, β€œb”, β€œπ‘β€,

β€œ|⁑𝑓(𝑐)|”

2. Express the following equation as a fixed-point problem π‘₯⁑ = ⁑𝑔(π‘₯) in three different ways

x3 β‘βˆ’ ⁑x⁑ +⁑ex ⁑= ⁑0

Use Fixed Point Iteration Method to find an approximation with accuracy 10βˆ’5. Show your answers in a table with suitable headings. Comment on the convergence of choices of 𝑔(π‘₯).

3. Set 𝑓⁑(π‘₯) ⁑= ⁑54π‘₯6 ⁑+ ⁑45π‘₯5 β‘βˆ’ ⁑102π‘₯4 β‘βˆ’ ⁑69π‘₯3 ⁑+ ⁑35π‘₯2 ⁑+ ⁑16π‘₯⁑ βˆ’ ⁑4. Plot the function on the interval [βˆ’2, 2], and use the Secant Method to find all five roots in the interval. Show your results in a table with headings as follows:

β€œIteration No.”, β€œπ‘₯𝑛”, β€œπ΄π‘π‘ β‘π‘’π‘Ÿπ‘Ÿπ‘œπ‘Ÿβ€.

4. Apply Newton’s Method to find both roots of the function

𝑓⁑(π‘₯)⁑= ⁑14π‘₯𝑒π‘₯βˆ’2 β‘βˆ’ ⁑12𝑒π‘₯βˆ’2 β‘βˆ’ 7π‘₯3 ⁑+ ⁑20π‘₯2 β‘βˆ’ ⁑26π‘₯⁑ + ⁑12Β  on the interval [0, 3]. Print out the sequence of iterations, the errors 𝑒𝑖, and the relevant error ratio .

 

 

 

[1] | P a g e

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.