function value = j_integral ( n )

%*****************************************************************************80
%
%% j_integral() evaluates a monomial integral associated with J(n,a,b,x).
%
%  Discussion:
%
%    The integral:
%
%      integral ( -1 <= x < +1 ) x^n dx
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 March 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the exponent.
%    0 <= N.
%
%  Output:
%
%    real VALUE, the value of the integral.
%
  if ( mod ( n, 2 ) == 1 )
    value = 0.0;
  else
    value = 2.0 / ( n + 1 );
  end

  return
end
