Skip to content

Cleanup in rings.arith and rings.integer #17852

@videlec

Description

@videlec

In this ticket, we:

  • implement the two functions prime_part_m and binomial directly as methods of Sage integers and get rid of the late_import in sage.rings.integer
  • simplify the import logic in rings.arith
  • replace in arith prod([x for x in hum]) by prod(x for x in hum)
  • remove some useless comments in arith
  • deprecate powermodm_ui
  • remove 1 from the output of prime_powers() (consistent with faster is_prime #16878)
  • remove the method lcm from Rational

Depends on #16878

Component: basic arithmetic

Author: Vincent Delecroix

Branch/Commit: d7e1e37

Reviewer: Jeroen Demeyer

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions