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 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
question
Computers and Technology, 24.06.2019 07:00
You are most likely to automatically encode information about
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Append and make table queries are called queries. select complex simple action i think action
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, 15.09.2019 02:10
Questions on the website: 13722360