Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Forward-difference/11l/forward-difference.11l
Normal file
8
Task/Forward-difference/11l/forward-difference.11l
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
V dif = s -> enumerate(s[1..]).map2((i, x) -> x - @s[i])
|
||||
F difn(s, n) -> [Int]
|
||||
R I n != 0 {difn(dif(s), n - 1)} E s
|
||||
|
||||
V s = [90, 47, 58, 29, 22, 32, 55, 5, 55, 73]
|
||||
|
||||
L(i) 10
|
||||
print(difn(s, i))
|
||||
Loading…
Add table
Add a link
Reference in a new issue