10.07.2015 Views

Numerical Methods Library for OCTAVE

Numerical Methods Library for OCTAVE

Numerical Methods Library for OCTAVE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 1: euler vs. beuler with a typical stiff ODE y ′ = −100y + 100t + 1013.8.3 Modified Euler[TT,Y] = ODE_EULER(ODEFUN,TSPAN,Y,NH) with TSPAN = [T0, TF] integrates thesystem of differential equations Y’=f(T,Y) from time T0 to TF with initialcondition Y0 using the modified Euler method on an equispaced grid of NHintervals. Function ODEFUN(T,Y) must return a column vector correspondingto f(T, Y). Each row in the solution array Y corresponds to a time returnedin the column vector T.ParametersODEFUN integrated function.TSPAN TSPAN = [T0 TF].Y initial value Y(T0).NH TT equispaced grid of NH intervals.ReturnsTT equispaced grid of NH intervals.Y solution array.3.8.4 Fourth-order Rounge-KuttaIt corresponds to ode23,ode45 which already exit in Octave. Write ’help ’ inOctave to have more in<strong>for</strong>mations.3.8.5 Fourth-order predictor[TT,Y] = ODE_FOP(ODEFUN,TSPAN,Y,NH) with TSPAN = [T0, TF] integrates thesystem of differential equations Y’=f(T,Y) from time T0 to TF with initial22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!