Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
forwardDifference(x(1), n) := forwardDifferenceHelper(x, n, [x]);
|
||||
|
||||
forwardDifferenceHelper(x(1), n, result(2)) :=
|
||||
let
|
||||
difference := tail(x) - x[1 ... size(x) - 1];
|
||||
in
|
||||
result when n = 0 or size(x) = 1 else
|
||||
forwardDifferenceHelper(difference, n - 1, result ++ [difference]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue