function triangle_area_test ( )

%*****************************************************************************80
%
%% TRIANGLE_AREA_TEST tests TRIANGLE_AREA.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    22 October 2015
%
%  Author:
%
%    John Burkardt
%
  t = [ ...
    0.0, 1.0; ...
    0.0, 0.0; ...
    1.0, 0.0 ]';

  fprintf ( 1, '\n' );
  fprintf ( 1, 'TRIANGLE_AREA_TEST\n' );
  fprintf ( 1, '  TRIANGLE_AREA computes the area of a triangle.\n' );

  r8mat_print ( 2, 3, t, '  Triangle vertices (columns)' );

  area = triangle_area ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Triangle area is %f\n', area );

  return
end
