function point_num = product_rule_size ( point_num_1d, dim_num ) %% PRODUCT_RULE_SIZE returns the size of a product rule. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 05 May 2007 % % Author: % % John Burkardt % % Parameters: % % Input, integer POINT_NUM_1D, the number of points in the 1D rule. % % Input, integer DIM_NUM, the spatial dimension. % % Output, integer POINT_NUM, the number of points in the product rule. % point_num = point_num_1d^dim_num;