Try

sage: IntegerModRing?

to see documentation for this.

sage: R = IntegerModRing(5)
sage: R(2)+R(4)
1
sage: R(2)*R(4)
3


Hope this helps,

- kcrisman

On Jan 4, 8:09 am, Santanu Sarkar <[email protected]>
wrote:
> How one can define the ring  Z_5 (modular ring) in Sage?

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to