function r8_cot_test ( )

%*****************************************************************************80
%
%% R8_COT_TEST tests R8_COT.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    30 July 2018
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8_COT_TEST\n' );
  fprintf ( 1, '  R8_COT computes the cotangent of an angle.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  ANGLE    R8_COT(ANGLE)\n' );
  fprintf ( 1, '\n' );
 
  angle = linspace ( 0.0, 2.0 * pi, 25 );
  for i = 1 : 25
    fprintf ( 1, '  %8.2f  %14.6g\n', angle(i), r8_cot ( angle(i) ) );
  end
 
  return
end
