#8879: Clean up whitespace in padic hyperelliptic curve file
------------------------------------+-----------------------------------
       Reporter:  kcrisman          |        Owner:  cremona
           Type:  defect            |       Status:  closed
       Priority:  minor             |    Milestone:  sage-5.0
      Component:  elliptic curves   |   Resolution:  fixed
       Keywords:                    |    Merged in:  sage-5.0.beta3
        Authors:  Michael Orlitzky  |    Reviewers:  Karl-Dieter Crisman
Report Upstream:  N/A               |  Work issues:
         Branch:                    |       Commit:
   Dependencies:                    |     Stopgaps:
------------------------------------+-----------------------------------
Description changed by chapoton:

Old description:

> As of 4.4, there is bad indentation in
> sage/schemes/hyperelliptic_curves/hyperelliptic_padic_field.py
> {{{
>     def is_in_weierstrass_disc(self,P):
>         """
>         Checks if $P$ is in a Weierstrass disc
>
>         EXAMPLES:
>             sage: R.<x> = QQ['x']
>             sage: H = HyperellipticCurve(x^3-10*x+9)
>             sage: K = Qp(5,8)
>             sage: HK = H.change_ring(K)
>             sage: P = HK(0,3)
>             sage: HK.is_in_weierstrass_disc(P)
>             False
>             sage: Q = HK(0,1,0)
>             sage: HK.is_in_weierstrass_disc(Q)
>             True
>             sage: S = HK(1,0)
>             sage: HK.is_in_weierstrass_disc(S)
>             True
>             sage: T = HK.lift_x(1+3*5^2); T
>             (1 + 3*5^2 + O(5^8) : 2*5 + 4*5^3 + 3*5^4 + 5^5 + 3*5^6 +
> O(5^7) : 1 + O(5^8))
>             sage: HK.is_in_weierstrass_disc(T)
>             True
>
>         AUTHOR:
>             - Jennifer Balakrishnan (2010-02)
>         """
> }}}
> I don't know if it matters that much, but at the very least it's
> annoying.  It's not elliptic curves, of course, but that's the closest
> component I could find.

New description:

 As of 4.4, there is bad indentation in
 sage/schemes/hyperelliptic_curves/hyperelliptic_padic_field.py
 {{{
     def is_in_weierstrass_disc(self,P):
         """
         Checks if $P$ is in a Weierstrass disc

         EXAMPLES:
             sage: R.<x> = QQ['x']
             sage: H = HyperellipticCurve(x^3-10*x+9)
             sage: K = Qp(5,8)
             sage: HK = H.change_ring(K)
             sage: P = HK(0,3)
             sage: HK.is_in_weierstrass_disc(P)
             False
             sage: Q = HK(0,1,0)
             sage: HK.is_in_weierstrass_disc(Q)
             True
             sage: S = HK(1,0)
             sage: HK.is_in_weierstrass_disc(S)
             True
             sage: T = HK.lift_x(1+3*5^2); T
             (1 + 3*5^2 + O(5^8) : 2*5 + 4*5^3 + 3*5^4 + 5^5 + 3*5^6 +
 O(5^7) : 1 + O(5^8))
             sage: HK.is_in_weierstrass_disc(T)
             True

         AUTHOR:
             - Jennifer Balakrishnan (2010-02)
         """
 }}}
 I don't know if it matters that much, but at the very least it's annoying.
 It's not elliptic curves, of course, but that's the closest component I
 could find.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/8879#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to