Defining a new base-type in Python based off Hexavigesimal

S

Steven D'Aprano

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!
 
D

Devin Jeanpierre

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!

Mathematical English is pseudocode. Related: all theorems are also
programs and vice versa.



That said, I don't understand the notation either. What's \mathbb{M}?
What does it mean ti be "in" some natural number n? (Are you using a
set theoretic definition of natural numbers: e.g. x in y iff x <= y ?)

Devin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top