function stochastic_integral_strat_test ( )

%*****************************************************************************80
%
%% stochastic_integral_strat_test() tests stochastic_integral_strat().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 March 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'stochastic_integral_strat_test():\n' );
  fprintf ( 1, '  stochastic_integral_strat() estimates the Stratonovich\n' );
  fprintf ( 1, '  integral of W(t) dW over [0,1].\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '                                             Abs      Rel\n' );
  fprintf ( 1, '         N        Exact        Estimate      Error    Error\n' );
  fprintf ( 1, '\n' );

  n = 100;

  for i = 1 : 7

    [ estimate, exact, error ] = stochastic_integral_strat ( n );

    fprintf ( 1, '  %8d  %12.8g  %12.8g  %8.2g  %8.2g\n', n, exact, estimate, ...
      error, error / exact );

    n = n * 4;

  end

  return
end
