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