Program Listing for File Ralston2.m

Return to documentation for file (+Indigo/+Tableau/Ralston2.m)

%
%> Class container for Ralston's method.
%
classdef Ralston2 < Indigo.RungeKutta
  %
  methods
    %
    % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    %
    %> Ralston's method.
    %>
    %> \f[
    %> \begin{array}{c|cc}
    %>     0 &   0 &   0 \\
    %>   2/3 & 2/3 &   0 \\
    %>   \hline
    %>       & 1/4 & 3/4
    %> \end{array}
    %> \f]
    %
    function this = Ralston2()
      tbl.A   = [0, 0; 2/3, 0];
      tbl.b   = [1/4, 3/4];
      tbl.b_e = [];
      tbl.c   = [0, 2/3]';
      this@Indigo.RungeKutta('Ralston2', 2, tbl);
    end
    %
    % - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    %
  end
  %
end