trial - % Simulation : Comparing the Runge Kutta 2nd order...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
% Simulation : Comparing the Runge Kutta 2nd order method of  % solving ODEs  % Language : Matlab 2007a  % Authors : Autar Kaw  % Last Revised : July 12, 2008  % Abstract: This program compares results from the  % exact solution to 2nd order Runge-Kutta methods  % of Heuns method, Ralstons method, Improved Polygon  % method, and directly using the three terms of Taylor series  clc  clear all  clc  clf  disp(This program compares results from the)  disp(exact solution to 2nd order Runge-Kutta methods)  disp(of Heuns method, Ralstons method, Improved Polygon)  disp( method, and directly using the three terms of Taylor series)  %INPUTS. If you want to experiment these are only things  % you should and can change. Be sure that the ode has an exact  % solution  % Enter the rhs of the ode of form dy/dx=f(x,y)  fcnstr=sin(5*x)-0.4*y ;  % Initial value of x  x0=0;  % Initial value of y 
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/17/2009 for the course MAE 469 taught by Professor Silverberg during the Fall '08 term at N.C. State.

Page1 / 5

trial - % Simulation : Comparing the Runge Kutta 2nd order...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online