function triangle_circumcircle_test ( )

%*****************************************************************************80
%
%% TRIANGLE_CIRCUMCIRCLE_TEST tests TRIANGLE_CIRCUMCIRCLE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 October 2015
%
%  Author:
%
%    John Burkardt
%
  ntest = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'TRIANGLE_CIRCUMCIRCLE_TEST\n' );
  fprintf ( 1, '  TRIANGLE_CIRCUMCIRCLE computes the circumcenter of a triangle.\n' );

  for i = 1 : ntest

    if ( i == 1 )
      t(1:2,1:3) = [ ...
         0.0,  0.0; ...
         1.0,  0.0; ...
         0.0,  1.0 ]';
    elseif ( i == 2 )
      t(1:2,1:3) = [ ...
         0.0,  0.0; ...
         1.0,  0.0; ...
         0.5,  0.86602539 ]';
    elseif ( i == 3 )
      t(1:2,1:3) = [ ...
         0.0,  0.0; ...
         1.0,  0.0; ...
         0.5, 10.0 ]';
    elseif ( i == 4 )
      t(1:2,1:3) = [ ...
         0.0,  0.0; ...
         1.0,  0.0; ...
        10.0,  2.0 ]';
    end

    r8mat_transpose_print ( 2, 3, t, '  Triangle vertices:' );

    [ r, center ] = triangle_circumcircle ( t );

    r8vec_print ( 2, center, '  Circumcenter' );
    fprintf ( 1, '\n' );
    fprintf ( 1, '  Circumradius: %f\n', r );

  end

  return
end
