Skip to content

Commit 4e3f558

Browse files
author
Matthias Koeppe
committed
Fixups
1 parent e9643d8 commit 4e3f558

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/sage/quadratic_forms/binary_qf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,17 +1619,17 @@ def solve_integer(self, n, *, algorithm="general"):
16191619
16201620
Also when using the ``"cornacchia"`` algorithm::
16211621
1622-
asge: # needs sage.libs.pari
1622+
sage: # needs sage.libs.pari
16231623
sage: abc = [1, 0, randrange(1,10^3)]
16241624
sage: Q = BinaryQF(abc)
1625-
sage: n = random_prime(10^9) # needs sage.libs.pari
1626-
sage: if randrange(2): # needs sage.libs.pari
1625+
sage: n = random_prime(10^9)
1626+
sage: if randrange(2):
16271627
....: n *= 4
1628-
sage: xy1 = Q.solve_integer(n, algorithm='cornacchia') # needs sage.libs.pari
1629-
sage: xy1 is None or Q(*xy1) == n # needs sage.libs.pari
1628+
sage: xy1 = Q.solve_integer(n, algorithm='cornacchia')
1629+
sage: xy1 is None or Q(*xy1) == n
16301630
True
1631-
sage: xy2 = Q.solve_integer(n) # needs sage.libs.pari
1632-
sage: (xy1 is None) == (xy2 is None) # needs sage.libs.pari
1631+
sage: xy2 = Q.solve_integer(n)
1632+
sage: (xy1 is None) == (xy2 is None)
16331633
True
16341634
16351635
Test for square discriminants specifically (:trac:`33026`)::

0 commit comments

Comments
 (0)