Four bit adder: Difference between revisions

Content added Content deleted
(+ Haskell)
m (J: clarify wording)
Line 747: Line 747:
1 0 1 1 0</lang>
1 0 1 1 0</lang>


For all results:
To produce all results:
<lang j> add"1/~#:i.16</lang>
<lang j> add"1/~#:i.16</lang>


Line 759: Line 759:
Compare this to a regular addition table:
Compare this to a regular addition table:
<lang j> +/~i.10</lang>
<lang j> +/~i.10</lang>
(this produces a 10 by 10 array -- the results have no internal structure.)
(this produces a 10 by 10 array -- the results have no further internal structure.)


===Glossary===
===Glossary===