function normal_01_variance_test ( )

%*****************************************************************************80
%
%% normal_01_variance_test() tests normal_01_variance().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 March 2015
%
%  Author:
%
%    John Burkardt
%

  fprintf ( 1, '\n' );
  fprintf ( 1, 'normal_01_variance_test():\n' );
  fprintf ( 1, '  normal_01_variance() returns the Normal 01 variance.\n' );

  variance = normal_01_variance ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  PDF variance =  %14f\n', variance );

  nsample = 1000;

  for i = 1 : nsample
    x(i) = normal_01_sample ( );
  end

  variance = var ( x );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Sample size =     %6d\n', nsample );
  fprintf ( 1, '  Sample variance = %14f\n', variance );

  return
end
