function value = r8_besk ( nu, x )

%*****************************************************************************80
%
%% R8_BESK evaluates the Bessel function K of order NU of an R8 argument.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    03 November 2012
%
%  Author:
%
%    Original FORTRAN77 version by Wayne Fullerton.
%    MATLAB version by John Burkardt.
%
%  Reference:
%
%    Wayne Fullerton,
%    Portable Special Function Routines,
%    in Portability of Numerical Software,
%    edited by Wayne Cowell,
%    Lecture Notes in Computer Science, Volume 57,
%    Springer 1977,
%    ISBN: 978-3-540-08446-4,
%    LC: QA297.W65.
%
%  Parameters:
%
%    Input, real NU, the order.
%
%    Input, real X, the argument.
%
%    Output, real VALUE, the Bessel function K of order NU at X.
%
  xnu = mod ( nu, 1.0 );

  nin = floor ( nu ) + 1;

  bke = r8_besks ( xnu, x, nin );

  value = bke(nin);

  return
end

