Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write and run a computer program to approximate the derivative of function f at point z defined by the equation f'(x) = lim h0

Write and run a computer program to approximate the derivative of function f at point z defined by the 

Write and run a computer program to approximate the derivative of function f at point z defined by the equation f'(x) = lim h0 Try f(x) = sin(z) at z = 0.5 and h 0.5 ha-1,ho 1, n = 1, 2,.... 30. Compute absolute errors of the approximation using the formula error = ly - f'(x), where yn is yn is an output of the program in iteration n. Plot the errors on using a log-scale, i.e., the axes of the plot should be log0 error versus log10 h. Analyze the results. Repeat the same experiment for f(x) = 1. (b) (5%) Find a way for to calculate accurate values for 1+ 2-1 x f(x): f(x+h)-f(x) h = = .sin(x) x-tan(r)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Calculus Early Transcendentals

Authors: William L. Briggs, Lyle Cochran, Bernard Gillett

2nd edition

321954428, 321954424, 978-0321947345

More Books

Students also viewed these Programming questions

Question

What is multiple sclerosis?

Answered: 1 week ago