Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
7
Task/Matrix-arithmetic/FunL/matrix-arithmetic-2.funl
Normal file
7
Task/Matrix-arithmetic/FunL/matrix-arithmetic-2.funl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
def perm( m )
|
||||
| m.length() == 1 and m(0).length() == 1 = m(0, 0)
|
||||
| otherwise = sum( m(i, 0)*perm(m(0:i, 1:m.length()) + m(i+1:m.length(), 1:m.length())) | i <- 0:m.length() )
|
||||
|
||||
def det( m )
|
||||
| m.length() == 1 and m(0).length() == 1 = m(0, 0)
|
||||
| otherwise = sum( (-1)^i*m(i, 0)*det(m(0:i, 1:m.length()) + m(i+1:m.length(), 1:m.length())) | i <- 0:m.length() )
|
||||
Loading…
Add table
Add a link
Reference in a new issue