Question: USING PYTHON 3.7 and without advanced coding such as import numpy, import sys, etc. or the function limit() NOTE: When it says in part (a),

USING PYTHON 3.7 and without advanced coding such as import numpy, import sys, etc. or the function limit()

NOTE: When it says "in part (a)", it's simply saying to take inputs for coefficients A, B, C and D and x.

My code to begin is below the instructions.

USING PYTHON 3.7 and without advanced coding such as import numpy, import

print("This code uses limits to find the derivative of a user entered cubic polynomial")

# Take inputs for 4 coefficients from user A = float(input("Input a value for coefficient A: ")) B = float(input("Input a value for coefficient B: ")) C = float(input("Input a value for coefficient C: ")) D = float(input("Input a value for coefficient D: ")) x = int(input("Input whole number at which to evaluate the derivative"))

# define number to begin derivative calculations a = .1 print()

a b) Evaluating a polynomial derivative numerically For a function f(x), the derivative of the function at a value x can be found by evaluating and finding the limit as a gets closer and closer to 0. Using the same polynomial as the user entered in part (a), and for the same value of x as entered in part (a), compute the limit numerically. That is, start with an estimate by evaluating using a value for a such as 0.1. Then, repeatedly halve the value of a until the difference between successive evaluations of 1976 is less than some small value, such as 106. Print the result, along with the number ed upon Dr. Keyser's Original Revised Summer 2019 TLF Lab Assignment #5a of evaluations it took. Calculate how close that result is to the actual answer, computed in part (a). Repeat the above activity by evaluating the limits of the following expressions: or 49. Try computing each of those, and calculate how many iterations you need to converge to the limit. Do you get different results with any of them, or does any of them take fewer steps to get an answer? (Put your answer as a comment in your code.) 2a

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