Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
on indentityMatrix(n)
|
||||
set digits to {}
|
||||
set m to n - 1
|
||||
repeat (n + m) times
|
||||
set end of digits to 0
|
||||
end repeat
|
||||
set item n of digits to 1
|
||||
|
||||
set matrix to {}
|
||||
repeat with i from n to 1 by -1
|
||||
set end of matrix to items i thru (i + m) of digits
|
||||
end repeat
|
||||
|
||||
return matrix
|
||||
end indentityMatrix
|
||||
|
||||
return indentityMatrix(5)
|
||||
Loading…
Add table
Add a link
Reference in a new issue