Computers and Technology
07.06.2020 15:14
136
190
6
Solved by an expert

Pythonin an earlier lab, we observed how we could have a function that is undefined

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 nxisxaka6h6reaeitfd6xpepj4bwmuukujnajjio 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 nxisxaka6h6reaeitfd6xpepj4bwmuukujnajjio 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)am32jndc9yne7bizhpwdunokdpzuq6usuvor or fx+a-f(x-a)2aryeezje74ofersuwxwsklwy0h084in0cnz6mslkt . 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.
Show Answers
shainaanderson24
shainaanderson24
4,8(28 marks)
Tim Berners-Lee was the main person who created the WORLD WIDE WEB . 
Why he did it was for communication purposes . (news) 

Popular Questions about the subject: Computers and Technology

Match the title of the work of fiction to the description given....
Computers and Technology
07.09.2021 23:28
Please help me with these three questions...
Computers and Technology
13.12.2021 03:14
Since Im Doing This I Just Want You To Know...
Computers and Technology
16.04.2022 15:10
(a) Explain the difference between a web browser and a search...
Computers and Technology
04.05.2023 14:57
An search algorithm tries every possible solution to find an...
Computers and Technology
22.09.2021 04:31
A binary search algorithm an ordered list in half to find an...
Computers and Technology
19.06.2022 04:31
Nêu những trải nghiệm và đánh giá website Expedia dựa trên mô...
Computers and Technology
05.01.2023 00:43

New questions by subject

According to the speech why did Roosevelt close the banks...
History
24.01.2021 12:48
Scale on a map of Ireland is 1.2 000000 how many square centimetres...
Mathematics
09.04.2022 02:50
Mr. And Mrs. Jenkins wanted to make a down payment of $25,000...
Mathematics
23.06.2023 07:10
Solve the system of equations by graphing. y = 1/2x -6x + 3y...
Mathematics
17.07.2021 17:15
Send me a image of undyne from undertale with a short hairstyle...
Arts
28.11.2021 09:38
#
#
#
#
# #

We expand our knowledge with many expert answers