필터 지우기
필터 지우기

solving ODE using runge kutta method

조회 수: 1 (최근 30일)
Luke
Luke 2011년 3월 31일
Hi,
I'm trying to solve the following eqaution using runge kutta method.
A(x)*y''+B(x)*yy'+C(x)*y'+D(x)*y+E(x)=0; where A(x),B(x),C(x),D(x) and E(x) are constants. These constants vary at each iteration. I don't know how to handle this variable coefficient case.
Boundary conditions are y(0)=0; y(l)= 2.3
Thanks

답변 (1개)

Matt Tearle
Matt Tearle 2011년 3월 31일
There's really no difference between this and the constant coefficient case. Use the approach Jarrod provided, but just calculate A - E based on the independent variable (Jarrod used t, you're calling it x).
(Maximum pedantry: A(x) can't really be a constant if it keeps changing :) It's a coefficient.)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by