1 | initial version |
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.