# HG changeset patch
# User William Stein <wstein@gmail.com>
# Date 1225344955 25200
# Node ID 75798fe1d9e23b3c4f5c747c8aa930249d8f4417
# Parent  3859ace869681b4efc4ded59cf84a24e26383e9f
trac #4390 -- elliptic curves: heegner_index command broken

diff -r 3859ace86968 -r 75798fe1d9e2 sage/schemes/elliptic_curves/ell_rational_field.py
--- a/sage/schemes/elliptic_curves/ell_rational_field.py	Mon Oct 20 08:04:38 2008 -0700
+++ b/sage/schemes/elliptic_curves/ell_rational_field.py	Wed Oct 29 22:35:55 2008 -0700
@@ -3591,6 +3591,10 @@
             sage: E.heegner_index(-95)          # long time (1 second)
             2.00000?
 
+        This tests doing direct computation of the Mordell-Weil group.
+            sage: EllipticCurve('675b').heegner_index(-11)
+            3.0000?
+
         Current discriminants -3 and -4 are not supported:
             sage: E.heegner_index(-3)
             Traceback (most recent call last):
@@ -3635,7 +3639,7 @@
         
         if c > _MAX_HEIGHT or F is self:
             misc.verbose("Doing direct computation of MW group.")
-            reg = F.regulator(verbose=verbose)
+            reg = F.regulator()
             return self.__adjust_heegner_index(ht/IR(reg))
         
         # Do naive search to eliminate possibility that Heegner point
