function [tt,xx,k]=rkf45 (ftys,a,Alpha,b,h,delta,M)
%--------------------------------------------------------------------------- %RKF45 % Runge-Kutta-Fehlberg solution for a system Y' = F(T,Y) with Y(a) = Y_a. % Sample call % [tt,xx,k] = rkf45('f',a,Alpha,b,h,delta,M) % Inputs % f name of the function % a left endpoint of [a,b] % Alpha initial value % b right endpoint of [a,b] % h initial step size % delta threshhold for stepsize acceptance % M maximum number of iterations allowed % Outputs % tt solution: array of points during the computation % xx solution: array of corresponding approximations at the points. % k number of iterations excuted % Math5466: Numerical Analysis. Second project(c) Hong Zhang 2010 % % Algorithm Runge-Kutta-Fehlberg Method RKF45 %---------------------------------------------------------------------------