function f = f09_f0 ( n, x, y )

%*****************************************************************************80
%
%% f09_f0() returns the value of function 9.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 December 2016
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of evaluation points.
%
%    real X(N,1), Y(N,1), the evalution points.
%
%  Output:
%
%    real F(N,1), the function values.
%
  t1(1:n,1) = exp ( ( 10.0 - 20.0 * x(1:n,1) ) / 3.0 );
  t2(1:n,1) = exp ( ( 10.0 - 20.0 * y(1:n,1) ) / 3.0 );
  t3(1:n,1) = 1.0 ./ ( 1.0 + t1(1:n,1) );
  t4(1:n,1) = 1.0 ./ ( 1.0 + t2(1:n,1) );
  f(1:n,1) = ( ( 20.0 / 3.0 ).^3 * t1(1:n,1) .* t2(1:n,1) ).^2 ...
    .* ( t3(1:n,1) .* t4(1:n,1) ).^5 ...
    .* ( t1(1:n,1) - 2.0 * t3(1:n,1) ) .* ( t2(1:n,1) - 2.0 * t4(1:n,1) );

  return
end
