Question: Task 3 . Given, f ( x ) = - 1 1 3 x 3 + 2 x 2 - 9 . 5 x -
Task
Given,
ai 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
ii Verify your method by ploting the function and the intervals.
#ai This cell should print
intervals # This snippet will be given in the question
#aii This cell should plot a graph.
b Using Bisection method, find roots of the function in these intervals where root
exists. The value of machine epsilon is
You can reuse the function of Task a to find out the intervals that contains root. Note: You should return different roots for the function
#b This cell should print
c Plot the along with the roots to check if your method is working correctly.
#c This cell plot a graph.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
