Anonymous user
Ethiopian multiplication: Difference between revisions
→{{header|Ursala}}: The first example does not follow the task spec.
(→{{header|Seed7}}: Incorrect. Examples should have separate functions for doubling, halving, and checking if a number is even.) |
(→{{header|Ursala}}: The first example does not follow the task spec.) |
||
Line 1,419:
=={{header|Ursala}}==
{{incorrect|Ursala|The task specifies that examples should have separate functions for doubling, halving, and checking if a number is even.}}
The first implementation below relies on the representation of natural numbers as lists of bits,
lsb first, so that halving is the same as taking the tail, doubling
|