First time here? Check out the FAQ!

Ask Your Question
2

Product of finite rings in sage

asked 4 years ago

GA3165 gravatar image

updated 1 year ago

FrédéricC gravatar image

How to implement the cartesian product of finite commutative rings with 1 with pointwise multiplication in sage?

As far as I know, it is not there yet. So please help me with this. Thank you.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 4 years ago

slelievre gravatar image

Use cartesian_product.

Example:

sage: R = cartesian_product([Zmod(4), Zmod(3), Zmod(5)])
sage: R((1, 2, 3)) * R((2, 1, 3))
(2, 2, 4)
sage: R((2, 2, 3)) * R((2, 2, 2))
(0, 1, 1)
Preview: (hide)
link

Comments

Thank you :)

GA3165 gravatar imageGA3165 ( 4 years ago )

How to list out the zero-divisors of this ring? Thank you.

GA3165 gravatar imageGA3165 ( 4 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

1 follower

Stats

Asked: 4 years ago

Seen: 465 times

Last updated: Mar 31 '21