필터 지우기
필터 지우기

How to find increment function using Heun's method?

조회 수: 1 (최근 30일)
Yusuke Nakamura
Yusuke Nakamura 2015년 4월 26일
댓글: Jan 2015년 4월 26일
Q: For the given differential equation: dy/dt + 2yt = 4, find the increment function using Heun's method without iteration for the step from t=2 to t=4 if y(2)=3.
My code is: dydt = @(t,y) 4-2*y*t; [t,y] = heun(dydt,[2 4],3,1,[],1)
Then I got y = 3, 16, 276
The answer should be 50.00, but I don't know what I can do next to get this value.
  댓글 수: 1
Jan
Jan 2015년 4월 26일
If you want a suggestion to fix your heun() code, post this code.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by