5. (20 points) (a) Write a function eval_central diff(f, a,b,n) that evaluates the derivative of f defined on [a, b] usi

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

5. (20 points) (a) Write a function eval_central diff(f, a,b,n) that evaluates the derivative of f defined on [a, b] usi

Post by answerhappygod »

5 20 Points A Write A Function Eval Central Diff F A B N That Evaluates The Derivative Of F Defined On A B Usi 1
5 20 Points A Write A Function Eval Central Diff F A B N That Evaluates The Derivative Of F Defined On A B Usi 1 (25.73 KiB) Viewed 64 times
5. (20 points) (a) Write a function eval_central diff(f, a,b,n) that evaluates the derivative of f defined on [a, b] using central differences at the point , = a + ih for i = 1,...,n-1 where h = = and returns: 11 x.diff All partition points where the numerical derivatives are evaluated the value of the numerical derivative evaluated at each point of x-diff central-diff (b) Use the function eval.central diff to evaluate the numerical derivative of the function f (ar) sin ² on the interval [0, 2] with n= 10000. The exact derivative is of course df = 2x cos 2². Find the absolute value of the maximum difference between the numerical derivative and exact derivative evaluated at the points x.diff.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply