function r8col_variance_test ( )

%*****************************************************************************80
%
%% r8col_variance_test() tests r8col_variance().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 April 2009
%
%  Author:
%
%    John Burkardt
%
  m = 3;
  n = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8COL_VARIANCE_TEST\n' );
  fprintf ( 1, '  For an R8COL, an array of column vectors;\n' );
  fprintf ( 1, '  R8COL_VARIANCE computes variances;\n' );

  k = 0;
  for i = 1 : m
    for j = 1 : n
      k = k + 1;
      a(i,j) = k;
    end
  end

  r8col_print ( m, n, a, '  The array:' );

  variance = r8col_variance ( m, n, a );

  r8vec_print ( n, variance, '  Column variances:' );
 
  return
end
