function value = p4 ( x )

%*****************************************************************************80
%
%% p4 evaluates the Legendre polynomial of degree 4.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2019
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real x, the argument.
%
%  Output:
%
%    real value, the function value.
%
  value = ( 35.0 * x.^4 - 30.0 * x.^2 + 3.0 ) / 8.0;

  return
end

