function sde_test ( )

%*****************************************************************************80
%
%% sde_test tests sde.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    12 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../sde' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'sde_test:\n' );
  fprintf ( 1, '  MATLAB version.\n' );
  fprintf ( 1, '  Test sde.\n' );

  seed = 123456789;

  bpath ( seed );
  bpath_vectorized ( seed );
  bpath_average (seed );

  chain ( seed );

  em ( seed );
  emstrong ( seed );

  method = 0;
  emweak ( seed, method );
  
  method = 1;
  emweak ( seed, method );

  milstrong ( seed );

  stab_asymptotic ( seed );
  stab_meansquare ( seed );

  stochastic_integral_ito_test ( );
  stochastic_integral_strat_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'sde_test:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../sde' );

  return
end
