Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the function: f ( x ) = x 3 - 2 x - 5 ( a ) Using Python as your coding language, write

Given the function:
f(x)=x3-2x-5
(a) Using Python as your coding language, write a program that uses the bisection
method to find the root of the function, for the interval 0,3. Stop the iteration
when the error as estimated by |xn+1-xn| is less than 10-6. Plot the output to
show the results.
(b) Repeat (a) but use the Newton-Raphson method to find the root of the function,
taking x0=2 and using the interval as given in part (a). Plot the output to show
the results.
(30 marks)
(c) Repeat (a) but use the secant method taking x0=0 and x1=3 using the interval
as given. Plot the output to show the results.
(20 marks)
(d) Discuss each of the methods used for root finding and evaluate your result using
all three methods of the given function.
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

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

6. Explain how to install a performance management program.

Answered: 1 week ago

Question

=+4 What are non-union workers representations?

Answered: 1 week ago