update
This commit is contained in:
parent
1f1ad49427
commit
6f050a029e
2496 changed files with 37609 additions and 3031 deletions
9
Task/Matrix-arithmetic/Racket/matrix-arithmetic.rkt
Normal file
9
Task/Matrix-arithmetic/Racket/matrix-arithmetic.rkt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#lang racket
|
||||
(require math)
|
||||
(define determinant matrix-determinant)
|
||||
|
||||
(define (permanent M)
|
||||
(define n (matrix-num-rows M))
|
||||
(for/sum ([σ (in-permutations (range n))])
|
||||
(for/product ([i n] [σi σ])
|
||||
(matrix-ref M i σi))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue