function z = f_poly352 ( m, n, x )

%*****************************************************************************80
%
%% f_poly253() is a scalar function of a 3-dimensional argument, to be interpolated.
%
%  Discussion:
%
%    The polynomial is of maximum degrees 3, 5, and 2, in the three variables.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 September 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the spatial dimension.
%
%    integer N, the number of points.
%
%    real X(M,N), the points.
%
%  Output:
%
%    real Z(N,1), the value of the function at each point.
%
  z(1:n,1) = 1.0 + x(1,1:n).^2 .* x(2,1:n).^5 .* x(3,1:n).^2 ...
    + x(1,1:n) .* x(2,1:n).^2 .* x(3,1:n) + x(1,1:n).^3;

  return
end
