| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.