Ticket #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: | Work issues: | ||
| Report Upstream: | Reviewers: | ||
| Authors: | Merged in: | ||
| Dependencies: | Stopgaps: |
Description
the attached patch makes this work:
sage: pow(10,20,17)
4
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
Change History
Note: See
TracTickets for help on using
tickets.

