Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
20
Task/Sudan-function/Quackery/sudan-function.quackery
Normal file
20
Task/Sudan-function/Quackery/sudan-function.quackery
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[ rot dup 0 = iff
|
||||
[ drop + ] done
|
||||
over 0 = iff
|
||||
2drop done
|
||||
over temp put
|
||||
dup 1 -
|
||||
swap 2swap 1 -
|
||||
recurse
|
||||
dup temp take +
|
||||
again ] is sudan ( n x y --> f(n) )
|
||||
|
||||
' [ [ 0 0 0 ]
|
||||
[ 1 1 1 ]
|
||||
[ 1 3 3 ]
|
||||
[ 2 1 1 ]
|
||||
[ 2 2 1 ]
|
||||
[ 3 1 1 ] ]
|
||||
witheach
|
||||
[ dup echo say " = "
|
||||
do sudan echo cr ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue