You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-37609: src/sage/schemes: Doctest cosmetics
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes#12345". -->
Standard reformatting of doctests and their outputs
Split out from #35095
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [ ] The title is concise and informative.
- [ ] The description explains in detail what this PR is about.
- [ ] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.
### ⌛ Dependencies
<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - #12345: short description why this is a dependency -->
<!-- - #34567: ... -->
URL: #37609
Reported by: Matthias Köppe
Reviewer(s): Giacomo Pope, Matthias Köppe
Copy file name to clipboardExpand all lines: src/sage/schemes/elliptic_curves/gal_reps_number_field.py
+22-13Lines changed: 22 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,9 @@ class GaloisRepresentation(SageObject):
80
80
sage: E = EllipticCurve('11a1').change_ring(K)
81
81
sage: rho = E.galois_representation()
82
82
sage: rho
83
-
Compatible family of Galois representations associated to the Elliptic Curve defined by y^2 + y = x^3 + (-1)*x^2 + (-10)*x + (-20) over Number Field in a with defining polynomial x^2 + 1
83
+
Compatible family of Galois representations associated to the Elliptic Curve
84
+
defined by y^2 + y = x^3 + (-1)*x^2 + (-10)*x + (-20)
85
+
over Number Field in a with defining polynomial x^2 + 1
84
86
"""
85
87
86
88
def__init__(self, E):
@@ -94,7 +96,9 @@ def __init__(self, E):
94
96
sage: E = EllipticCurve('11a1').change_ring(K)
95
97
sage: rho = E.galois_representation()
96
98
sage: rho
97
-
Compatible family of Galois representations associated to the Elliptic Curve defined by y^2 + y = x^3 + (-1)*x^2 + (-10)*x + (-20) over Number Field in a with defining polynomial x^2 + 1
99
+
Compatible family of Galois representations associated to the Elliptic Curve
100
+
defined by y^2 + y = x^3 + (-1)*x^2 + (-10)*x + (-20)
101
+
over Number Field in a with defining polynomial x^2 + 1
98
102
sage: loads(rho.dumps()) == rho
99
103
True
100
104
"""
@@ -111,12 +115,16 @@ def __repr__(self):
111
115
sage: E = EllipticCurve('11a1').change_ring(K)
112
116
sage: rho = E.galois_representation()
113
117
sage: rho
114
-
Compatible family of Galois representations associated to the Elliptic Curve defined by y^2 + y = x^3 + (-1)*x^2 + (-10)*x + (-20) over Number Field in a with defining polynomial x^2 + 1
118
+
Compatible family of Galois representations associated to the Elliptic Curve
119
+
defined by y^2 + y = x^3 + (-1)*x^2 + (-10)*x + (-20)
120
+
over Number Field in a with defining polynomial x^2 + 1
115
121
116
122
sage: K.<a> = NumberField(x^2-x+1)
117
123
sage: E = EllipticCurve([0,0,0,a,0])
118
124
sage: E.galois_representation()
119
-
Compatible family of Galois representations associated to the CM Elliptic Curve defined by y^2 = x^3 + a*x over Number Field in a with defining polynomial x^2 - x + 1
125
+
Compatible family of Galois representations associated to the
126
+
CM Elliptic Curve defined by y^2 = x^3 + a*x
127
+
over Number Field in a with defining polynomial x^2 - x + 1
120
128
"""
121
129
ifself.E.has_cm():
122
130
return"Compatible family of Galois representations associated to the CM "+repr(self.E)
0 commit comments