Levels Tought:
Elementary,Middle School,High School,College,University,PHD
Teaching Since: | Apr 2017 |
Last Sign in: | 36 Weeks Ago, 4 Days Ago |
Questions Answered: | 4870 |
Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
please use Python 3 notebook to solve these problems, sent me .ipynb file. thanks.
3. write a flmction calied derivatives which takes input parameters j. a, n. and h {with default
value h = o.co1} and returns approximations of the derivatives f’Ea), f"[a]. .. .. f{“3[o} [as
a NumPy array} using the formula from} as an?» 249 if“ (E) f {c+ {r1 — 2am}
k=o Use either scipymisciaotorial or soipy.miso.comb to compute a choose it: (E) = n! 4. 1Write a function called taylor which takes input parameters f? c... 1r: and L and plots hoth
1(1) and the Taylor polynomial Tnfir] of fire) at r = o of defies n. on the interval [a — Lio+ L] [in the same figure]. 5. 1ii'ii'frite a function called newton which talces input parameters 1' , It}? tolerance and max_1ter
and performs Newton‘s method to approximate a root r where fir} = fl; In other words,
compute the values of the recursive sequence starting at mu and defined by fin-h}
.51an The desired result is that the method converges to an approximate root of Hz} however there
are several possibilities: I1':.+1 = mrl- — (a) The sequence reaches the desired tolerance fix“) «a: tolerance and newton returns the
value 1,, [h] The number of iterations exceeds the maximum number of iterations max_iter and
newton returns Hone [c] A zero derivative is computed men} = fl and newton returns Hone
-----------