First time here? Check out the FAQ!

Ask Your Question
1

is a parent like a set?

asked 12 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 12 years ago

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??
Preview: (hide)
link

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 ( 12 years ago )

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: 12 years ago

Seen: 294 times

Last updated: Oct 15 '12