User:Thebigh/mysandbox: Difference between revisions
m
tweak
(→Logical operations: -finish up) |
m (tweak) |
||
Line 5:
Input a number of the form 2^a 3^b
<lang fractran>
</lang>
The output is 2^(a+b)
Line 12:
A list of no fractions does nothing, then immediately stops.
<lang fractran>
==Integer Sequence==
Given the number 1 as input the following program will, as its (3n-2)th step, produce the number 2^n.
<lang fractran>
==Logical operations==
Line 22:
<lang fractran>
so much for all the commonly encountered ones, but there's still another eight to go. Most are obscure and of limited utility.
NOT A and NOT B are omitted because the one-input NOT gate is already up there.
Line 48:
2^a 3^b 5^c
<lang fractran>
</lang>
Returns 7^A 11^B 13^C where (A,B,C) are (a,b,c) in ascending order.
|