Defining a new base-type in Python based off Hexavigesimal
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Nov 30 10:38:58 EST 2011
On 2011年12月01日 02:19:31 +1100, Alec Taylor wrote:
> Good evening,
>> I have defined a new numbering structure for certain mathematical
> advantages.
>> How do I implement this in Python, or would I be better off writing this
> in C or C++?
>> Ultra concise definition: http://i42.tinypic.com/af7w4h.png
Care to translate it into English?
Then translate the English into pseudo-code. And the pseudo-code into
Python. Then, if and only if the Python version is too slow, translate it
into C. And now you are done!
--
Steven
More information about the Python-list
mailing list