taylor series in matlab

조회 수: 2 (최근 30일)
Ronald Aono
Ronald Aono 2019년 10월 20일
댓글: the cyclist 2019년 10월 20일
Given the function: 5 4 2 f (x) = x^5 - 2x^4 + 3x^2- 1
a. Compute the exact derivative of f(x) at x = 2.1.
b. Estimate the first derivative of f(x) at x = 2.1 using a forward Taylor series approximation with the following step sizes: h [10^-4 10^-3 10^-2 10^-1 10^0 10^1 ]
Using the exact result from Part a, make a plot of the magnitude of the relative error in f '(x)x=2.1 versus step size -- use a log-log plot. From the plot or generated table (part b), determine the value of n (by hand calculation, or typed) in the error expression = h O(h ) . Explain!!!
c. Repeat Part b using a central Taylor series approximation for x f '(x)x=2.1 What is the “order of error” in this case? Plot the error vs. step size for this case in the same plot as above.
  댓글 수: 1
the cyclist
the cyclist 2019년 10월 20일
What's your question?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by