function value = fxdn ( dim_num, x ) %% FXDN(X(1:DIM_NUM)) = sum ( X(1:DIM_NUM) ) % % 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) );