function axon_ode_test ( )

%*****************************************************************************80
%
%% axon_ode_test() tests axon_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 April 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../axon_ode' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'axon_ode_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version "%s"\n', version ( ) );
  fprintf ( 1, '  Solve the Axon ODE.\n' );

  [ C, E_K, E_Na, E_rest, G_K, G_Na, t0, y0, tstop ] = axon_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameter values:\n' );
  fprintf ( 1, '    C =      %g\n', C );
  fprintf ( 1, '    E_K =    %g\n', E_K );
  fprintf ( 1, '    E_Na =   %g\n', E_Na );
  fprintf ( 1, '    E_rest = %g\n', E_rest );
  fprintf ( 1, '    G_K =    %g\n', G_K );
  fprintf ( 1, '    G_Na =   %g\n', G_Na );
  fprintf ( 1, '    t0 =     %g\n', t0 );
  fprintf ( 1, '    V(0) =   %g\n', y0(1) );
  fprintf ( 1, '    N(0) =   %g\n', y0(2) );
  fprintf ( 1, '    M(0) =   %g\n', y0(3) );
  fprintf ( 1, '    H(0) =   %g\n', y0(4) );
  fprintf ( 1, '    tstop =  %g\n', tstop );

  axon_euler ( );
  axon_ode45 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'axon_ode_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../axon_ode' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

