Opened 10 years ago

Closed 10 years ago

#1112 closed enhancement (fixed)

[with patch] Integer.__pow__

Reported by: malb Owned by: somebody
Priority: minor Milestone: sage-2.8.12
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:


the attached patch makes this work:

sage: pow(10,20,17)
sage: pow?
    pow(x, y[, z]) -> number

    With two arguments, equivalent to x**y.  With three arguments,
    equivalent to (x**y) % z, but may be more efficient (e.g. for longs).

this is required such that e.g. the Crypto.RSA module works with SAGE integers.

Attachments (1)

pow.patch (1.2 KB) - added by malb 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by malb

comment:1 Changed 10 years ago by mhansen

  • Summary changed from Integer.__pow__ to [with patch] Integer.__pow__

comment:2 Changed 10 years ago by mabshoff

  • Resolution set to fixed
  • Status changed from new to closed

applied to 2.8.12.rc0

Note: See TracTickets for help on using tickets.