تم الحل ✓
categoryالرياضيات
schoolبكالوريوس
event_available2026-07-14
السؤال
Transcribed Image Text:
#7. [Extra Credit] Is calculus wrong?! Consider f(x) = ex.
(a) Calculate the derivative of f(x) at x = 0 using O(h) finite difference (forward and backward) and O(h²)
centered finite difference. Vary h in the following manner: 1, 101, 102,....10-15. (Write a MATLAB script
for this purpose and call it pset5_prob7)
(b) Modify your script to plot (log-log) the the true percent error in all three cases as a function of h in
one plot.
(c) In calculus we learned that as h approaches zero, the finite difference should approach the true value
of the derivative. Do your results contradict this? Explain.
check_circle الجواب — حل مفصل خطوة بخطوة
hourglass_top
🔒
الحل الكامل متاح للمشتركين
اشترك في أرشيف الأسئلة لعرض هذا الحل وآلاف الحلول المفصلة خطوة بخطوة من معلمين معتمدين.