function roessler_ode_test ( )

%*****************************************************************************80
%
%% roessler_ode_test tests roessler_ode.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 March 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../roessler_ode' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'roessler_ode_test\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test roessler_ode using ode45.\n' );
  fprintf ( 1, '\n' );
%
%  Data
%
  [ alpha, beta, mu, t0, y0 ] = roessler_parameters ( );

  f = @ roessler_deriv;
  tspan = [ t0, 100.0 ];
%
%  Compute the approximate solution.
%
  [ t, y ] = ode45 ( f, tspan, y0 );
%
%  Plot the data.
%
  clf ( );
  plot3 ( y(:,1), y(:,2), y(:,3), 'linewidth', 2 );
  grid ( 'on' );
  xlabel ( '<-- X -->' );
  ylabel ( '<-- Y -->' );
  zlabel ( '<-- Z -->' );
  title ( 'Roessler ODE' );
  filename = 'roessler_ode45.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'roessler_ode_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../roessler_ode' );

  return
end

