Question: Task 3 . Given, f ( x ) = - 1 1 3 x 3 + 2 x 2 - 9 . 5 x -

Task 3.
Given,
f(x)=-113x3+2x2-9.5x-10
a.(i) Write a python function that takes an input function and a list of intervals as a list and returns a dictionary that contains either root exists
or not in each intervals. Determine if root exists in (-20,-10),(-10,0),(0,10),(10,20),(20,30).
(ii) Verify your method by ploting the function and the intervals.
[] #3a_i This cell should print
intervals =[(-20,-10),(-10,0),(0,10),(10,20),(20,30)]# This snippet will be given in the question
[] #3a_ii This cell should plot a graph.
b. Using Bisection method, find roots of the function 3.1 in these intervals (-20,-10),(-10,0),(0,10),(10,20),(20,30) where root
exists. The value of machine epsilon is,lon10-6
You can reuse the function of Task 3.a to find out the intervals that contains root. Note: You should return 3 different roots for the function (3.1).
[] #3b This cell should print
c. Plot the f(x) along with the roots to check if your method is working correctly.
[] #3c This cell plot a graph.
Task 3 . Given, f ( x ) = - 1 1 3 x 3 + 2 x 2 - 9

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 Programming Questions!