function value = fx2dn ( dim_num, x )

%*****************************************************************************80
%
%% fx2dn() evaluates FX2DN(X(1:DIM_NUM)) = sum ( X(1:DIM_NUM)^2 )
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 February 2007
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer DIM_NUM, the spatial dimension.
%
%    real X(DIM_NUM), the argument.
%
%  Output:
%
%    real VALUE, the value of the function at X.
%
  value = sum ( x(1:dim_num).^2 );
 
  return
end
