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 Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by