function triangle_area_3d_test ( )

%*****************************************************************************80
%
%% triangle_area_3d_test() tests triangle_area_3d();
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 May 2005
%
%  Author:
%
%    John Burkardt
%
  dim_num = 3;

  t = [ ...
    1.0,       2.0,       3.0; ...
    2.4142137, 3.4142137, 3.0; ...
    1.7071068, 2.7071068, 4.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'triangle_area_3d_test():\n' );
  fprintf ( 1, '  triangle_area_3d()   computes the area;\n' );
  fprintf ( 1, '  triangle_area_3d_2() computes the area;\n' );
  fprintf ( 1, '  triangle_area_3d_3() computes the area;\n' );

  r8mat_print ( dim_num, 3, t, '  Triangle (vertices are columns)' );

  area = triangle_area_3d ( t );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Area #1 %f\n', area );

  area = triangle_area_3d_2 ( t );

  fprintf ( 1, '  Area #2 %f\n', area );

  area = triangle_area_3d_3 ( t );

  fprintf ( 1, '  Area #3 %f\n', area );

  return
end
