function value = r8_csc ( theta )

%*****************************************************************************80
%
%% r8_csc() returns the cosecant of X.
%
%  Discussion:
%
%    R8_CSC ( THETA ) = 1.0 / SIN ( THETA )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    30 July 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real THETA, the angle, in radians, whose cosecant is desired.
%    It must be the case that SIN ( THETA ) is not zero.
%
%  Output:
%
%    real VALUE, the cosecant of THETA.
%
  value = sin ( theta );

  if ( value == 0.0 )
    value = Inf;
  else
    value = 1.0 / value;
  end

  return
end
