Talk:Pascal matrix generation

From Rosetta Code

task clarification

When this Rosetta Code task asked     ··· to write functions ···     it seemed to imply to write a function for each form of the Pascal matrices.   Is the coding of a singular function to generate all three forms of Pascal matrices acceptable? -- Gerard Schildberger (talk) 21:07, 16 May 2015 (UTC)

Individual functions was my intention. Is there really that much to gain by having one function parametrised with the output required?
I guess if there is documented language style for having one parameterised function in a similar area then it might be good to reference the standard library function(s) that you copying the style of then have the one function, but three functions is what the task expects. --Paddy3118 (talk) 05:37, 17 May 2015 (UTC)

range of numbers

Because the Pascal symmetric matrix uses     i+j     in the computation of the binomial coefficients (combinations), the calculation of the factorials can exceed the (default) maximum amount for some computer programming languages (number types) unless specified otherwise.   I found that with REXX's default digits of   9,   it lead to generating numbers that weren't integers   (close, but no cigar)   with a matrix size of   11.   It would be interesting to know what the (practical) limitations of each language entry is, if any   (as far as generating exact integers). -- Gerard Schildberger (talk) 21:07, 16 May 2015 (UTC)