subject

Pythonin an earlier lab, we observed how we could have a function that is undefined at some value (such as (sin x)/x at the point x=0), but could come arbitrarily close to it by successively evaluating smaller and smaller numbers (i. e. taking a limit). for example, we might evaluate at x=0.1, x=0.01, x=0.001, etc. until we have come very close to the value. taking limits like this, numerically, is commonly done when functions are too complicated to evaluate analytically. you will write a program to compute a derivative as a numerical limit. this activity has a few parts: evaluating a polynomial limit analyticallyyou should have learned by now the process for finding the derivative of a polynomial (as another polynomial). write a program that will read in from the user a cubic polynomial f(x) (as a set of 4 coefficients), and use this to compute the derivative polynomial (i. e. compute the three coefficients of the derivative f’( then, read in a value for x from a user, and evaluate the derivative polynomial at that x. print out that value. evaluating a polynomial derivative numericallyfor a function f(x), the derivative of the function at a value x can be found by evaluating fx+a-f(x)a nxisxaka6h6reaeitfd6xpepj4bwmuukujn ajjio 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 fx+a-f(x)a nxisxaka6h6reaeitfd6xpepj4bwmuukujn ajjio using a value for a such as 0.1. then, repeatedly halve the value of a until the difference between successive evaluations of fx+a-f(x)avczspf7 is less than some small value, such as 10-6. print the result, along with the number of evaluations it took. calculate how close that result is to the actual answer, computed in part (a).challenge: derivatives can also be estimated by computing the limit fx-f(x-a)am32jndc9yne7bizhpwdunokdp zuq6usuvor or fx+a-f(x-a)2aryeezje74ofersuwxwsklw y0h084in0cnz6mslkt . 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? be sure to include appropriate comments in your code, and to use descriptive input and output statements.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
question
Computers and Technology, 25.06.2019 01:30
The physical parts or components of a computer system is called .
Answers: 1
question
Computers and Technology, 25.06.2019 05:30
In 3-5 sentences describe how technology business professionals to be more efficient. include examples of hardware and software
Answers: 1
You know the right answer?
Pythonin an earlier lab, we observed how we could have a function that is undefined at some value (s...
Questions
question
Mathematics, 03.09.2021 20:20
question
Biology, 03.09.2021 20:20
question
Mathematics, 03.09.2021 20:20
question
Mathematics, 03.09.2021 20:20
question
Chemistry, 03.09.2021 20:20
question
English, 03.09.2021 20:20
question
Mathematics, 03.09.2021 20:20
question
Arts, 03.09.2021 20:20
question
Mathematics, 03.09.2021 20:20
question
Mathematics, 03.09.2021 20:20