Ask Your Question

Revision history [back]

You can have a look at this thematic tutorial that explains how to implement new algebraic structures in Sage.

To implement the in feature, you have to implement a __contains__ method.

Do not hesitate to post your preliminary code for more questions.