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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top