Family Day update
This commit is contained in:
parent
aac6731f2c
commit
9ad63ea473
2442 changed files with 39761 additions and 8255 deletions
|
|
@ -1 +1,2 @@
|
|||
eye(3)
|
||||
using LinearAlgebra
|
||||
I(3)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
eye(int(readline(STDIN)))
|
||||
I(parse(Int, readline(stdin)))
|
||||
|
|
|
|||
7
Task/Identity-matrix/Ol/identity-matrix.ol
Normal file
7
Task/Identity-matrix/Ol/identity-matrix.ol
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(define (make-identity-matrix n)
|
||||
(map (lambda (i)
|
||||
(append (repeat 0 i) '(1) (repeat 0 (- n i 1))))
|
||||
(iota n)))
|
||||
|
||||
(for-each print (make-identity-matrix 3))
|
||||
(for-each print (make-identity-matrix 17))
|
||||
Loading…
Add table
Add a link
Reference in a new issue