Ask Your Question
1

is a parent like a set?

asked 2012-10-15 03:51:39 +0200

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
0

answered 2012-10-15 11:30:06 +0200

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

Comments

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 15:47:41 +0200 )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

Stats

Asked: 2012-10-15 03:51:39 +0200

Seen: 189 times

Last updated: Oct 15 '12