Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Fractran/APL/fractran-1.apl
Normal file
11
Task/Fractran/APL/fractran-1.apl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fractran←{
|
||||
parts ← ' '∘≠⊆⊢
|
||||
frac ← ⍎¨'/'∘≠⊆⊢
|
||||
simp ← ⊢÷∨/
|
||||
mul ← simp×
|
||||
prog ← simp∘frac¨parts ⍺
|
||||
step ← {⊃⊃(1=2⊃¨next)/next←⍺ mul¨⊂(⍵ 1)}
|
||||
(start nstep)←⍵
|
||||
rslt ← ⊃(⊢,⍨prog∘step∘⊃)⍣nstep¨start
|
||||
⌽(⊢(/⍨)(∨\0∘≠))rslt
|
||||
}
|
||||
2
Task/Fractran/APL/fractran-2.apl
Normal file
2
Task/Fractran/APL/fractran-2.apl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
'17/91 78/85 19/51 23/38 29/33 77/29 95/23 77/19 1/17 11/13 13/11 15/14 15/2 55/1' fractran 2 20
|
||||
2 15 825 725 1925 2275 425 390 330 290 770 910 170 156 132 116 308 364 68 4 30
|
||||
Loading…
Add table
Add a link
Reference in a new issue