Improved Euler's Method Code

20 次查看(过去 30 天)
Sarita March
Sarita March 2018-12-14
评论: Jan 2018-12-14
Problem 1: Consider the following Initial Value Problem (IVP) where ? is the dependent variable and ? is the independent variable: ? ′ = sin(?) ∗ (1 − ?) with ?(0) = ?0 and ? ≥ 0 Note: the analytic solution for this IVP is: ?(?) = 1 + (?0 − 1)?^cos(?)−1.
Part 1B: Approximate the solution to the IVP using the Improved Euler’s method with the following conditions: Initial condition ?0 = − 1/2 ; time step ℎ = 1/16 ; and time interval ? ∈ [0,20]
+ Derive the recursive formula for the Improved Euler’s method applied to this IVP
+ Plot the Improved Euler’s method approximation
+ Plot the absolute error between the approximation and the exact solution using a semilog plot
  2 个评论
James Tursa
James Tursa 2018-12-14
What have you done so far? What specific problems are you having with your code?
Jan
Jan 2018-12-14
@Sarita: The forum will not solve homework questions.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by