Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 50a8539

Browse files
committed
update doctests that were relying on the incorrect behaviour
1 parent eae7a9a commit 50a8539

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/rings/finite_rings/integer_mod.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ cdef class IntegerMod_abstract(FiniteRingElement):
674674
An example with a highly composite modulus::
675675
676676
sage: m = 2^99 * 77^7 * 123456789 * 13712923537615486607^2
677-
sage: pow(5, 5735816763073854953388147237921, m).log(5)
677+
sage: (Mod(5,m)^5735816763073854953388147237921).log(5)
678678
5735816763073854953388147237921
679679
680680
Errors are generated if the logarithm doesn't exist
@@ -716,7 +716,7 @@ cdef class IntegerMod_abstract(FiniteRingElement):
716716
717717
Examples like this took extremely long before :trac:`32375`::
718718
719-
sage: pow(5, 10^50-1, 123337052926643**4).log(5)
719+
sage: (Mod(5, 123337052926643**4) ^ (10^50-1)).log(5)
720720
99999999999999999999999999999999999999999999999999
721721
722722
We check that non-existence of solutions is detected:

0 commit comments

Comments
 (0)