Data update
This commit is contained in:
parent
796d366b97
commit
35bcdeebf8
504 changed files with 7045 additions and 610 deletions
10
Task/Floyds-triangle/Maxima/floyds-triangle.maxima
Normal file
10
Task/Floyds-triangle/Maxima/floyds-triangle.maxima
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
floyd_t(m):=block(
|
||||
t:m*(m+1)/2,
|
||||
L1:makelist(makelist(k,k,1,t),j,0,m),
|
||||
L2:makelist(rest(L1[i],((i-1)^2+(i-1))/2),i,1,m+1),
|
||||
makelist(firstn(L2[i],i),i,1,m),
|
||||
table_form(%%))$
|
||||
|
||||
/* Test cases */
|
||||
floyd_t(5);
|
||||
floyd_t(14);
|
||||
Loading…
Add table
Add a link
Reference in a new issue