Skip to content

exact division syntax in finite fields of prime order #3890

@sagetrac-jbmohler

Description

@sagetrac-jbmohler

It appears that the // operator is supported for most fields, but not for GF(prime).

The example involving GF(7,'a') should not produce a TypeError.

sage: GF(49,'a')(121)//GF(49,'a')(124)
6
sage: GF(7,'a')(121)//GF(7,'a')(124)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)

/home/joel/sage-patches/<ipython console> in <module>()

TypeError: unsupported operand type(s) for //: 'sage.rings.integer_mod.IntegerMod_int' and 'sage.rings.integer_mod.IntegerMod_int'

Component: basic arithmetic

Issue created by migration from https://trac.sagemath.org/ticket/3890

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions