function r8mat_covariance_test ( )

%*****************************************************************************80
%
%% r8mat_covariance_test() tests r8mat_covariance().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 August 2018
%
%  Author:
%
%    John Burkardt
%
  m = 4;
  n = 5;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8MAT_COVARIANCE_TEST\n' );
  fprintf ( 1, '  R8MAT_COVARIANCE computes the covariance.\n' );
 
  a = 10.0 * rand ( m, n );
 
  r8mat_print ( m, n, a, '  Array of M vectors of length N:' );
 
  c = r8mat_covariance ( m, n, a );

  r8mat_print ( m, m, c, '  MxM covariance matrix:' );

  return
end
