function x = p16_root ( i )

%*****************************************************************************80
%
%% P16_ROOT returns a root for problem 16.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 October 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer I, the index of the requested root.
%
%  Output:
%
%    real X, the value of the root.
%
  if ( i == 1 )
    x = 22.67498691201332;
  else
    fprintf ( 1, '\n' );
    fprintf ( 1, 'P16_ROOT - Fatal error!\n' );
    fprintf ( 1, '  Illegal root index = %d\n', i );
    error ( 'P16_ROOT - Fatal error!' );
  end

  return
end
