Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider using Newton's method to find the roots of the following function: ( ) = 3 + 6 2 + 7 5 Fill in the

Consider using Newton's method to find the roots of the following function:
()=3+62+75
Fill in the gaps in the answer box below with Python lambda functions to represent the functions () and () that can be used with the Python function newton_root_finder shown in the course material to find a root of this function.
Also fill in the gap in the line defining the numpy array x0_array with 3 suitable initial values to use to find each of the 3 roots of the function in order (lowest to highest) to 7 decimal places using at most 10 iterations of Newton's method.
Hint: Plotting the function using Python or Desmos will help you to find suitable initial values for each root. These do not need to be exact! Initial values to only one decimal place are sufficient.
Your code will be tested by checking what root is found by each of your initial values.
For example if the code is tested with this test code:
x0= x0_array[0]
root = newton_root_finder(f,
f_prime,
x0,
tol,
max_iterations)
print("The first root")
print(f"is {root:.6f}(6 dps)")
the result should give the value of the first (lowest) root of the function.

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

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions