function value = r8_cosd ( degrees )

%*****************************************************************************80
%
%% r8_cosd() returns the cosine of an angle given in degrees.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 July 2014
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real DEGREES, the angle in degrees.
%
%  Output:
%
%    real VALUE, the cosine of the angle.
%
  radians = pi * ( degrees / 180.0 );

  value = cos ( radians );

  return
end
