Data update
This commit is contained in:
parent
61b93a2cd1
commit
5af6d93694
858 changed files with 20572 additions and 2082 deletions
|
|
@ -0,0 +1,13 @@
|
|||
/* Function that returns a lower Pascal matrix */
|
||||
lower_pascal(n):=genmatrix(lambda([i,j],binomial(i-1,j-1)),n,n)$
|
||||
|
||||
/* Function that returns an upper Pascal matrix */
|
||||
upper_pascal(n):=genmatrix(lambda([i,j],binomial(j-1,i-1)),n,n)$
|
||||
|
||||
/* Function that returns a symmetric Pascal matrix (the matricial multiplication of a lower and an upper of the same size) */
|
||||
symmetric_pascal(n):=lower_pascal(n).upper_pascal(n)$
|
||||
|
||||
/* Test cases */
|
||||
lower_pascal(5);
|
||||
upper_pascal(5);
|
||||
symmetric_pascal(5);
|
||||
Loading…
Add table
Add a link
Reference in a new issue