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 Center ๋ฐ File 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