function r8_sign3_test ( )

%*****************************************************************************80
%
%% R8_SIGN3_TEST tests R8_SIGN3.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    28 September 2014
%
%  Author:
%
%    John Burkardt
%
  test_num = 5;

  r8_test = [ -1.25, -0.25, 0.0, +0.5, +9.0 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_SIGN3_TEST\n' );
  fprintf ( 1, '  R8_SIGN3 returns the three-way sign of an R8.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '    R8  R8_SIGN3(R8)\n' );
  fprintf ( 1, '\n' );

  for test = 1 : test_num
    r8 = r8_test(test);
    s = r8_sign3 ( r8 );
    fprintf ( 1, '  %8f  %8f\n', r8, s );
  end

  return
end
