Ask Your Question

is a parent like a set?

asked 2012-10-14 20:51:39 -0500

SLOtoSF gravatar image

Does a parent function like a set? I would like to create a ring with elements which are sets and then place those elements into a matrix so that I can perform certain assigned operations on those elements.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2012-10-15 04:30:06 -0500

Nicolas M Thiéry gravatar image

Yes! A parent indeed models a mathematical set, more often than not endowed with some structure (a ring, a poset, a vector space, ...).

In your case, you want to implement a class that inherits from Parent, and sets its category to Rings() during the initialization. We don't have yet a minimal example of implementation of a ring, but you can already look at:

sage: S = Monoids()
sage: M = S.example()
sage: M??
edit flag offensive delete link more


Thanks, is it in the plans to do this for Rings? I was hoping to be able to account for 2 operations (addition and multiplication?).

SLOtoSF gravatar imageSLOtoSF ( 2012-10-15 08:47:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-14 20:51:39 -0500

Seen: 53 times

Last updated: Oct 15 '12