Skip to content

Commit d9d9772

Browse files
committed
Comment out gr_nf again
1 parent f7a8c78 commit d9d9772

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/flint/types/_gr.pyx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,21 +1201,21 @@ cdef class gr_nf_ctx(gr_scalar_ctx):
12011201
def new(poly) -> gr_nf_ctx:
12021202
"""Create a new context for number fields.
12031203

1204-
>>> from flint.types._gr import gr_nf_ctx
1205-
>>> Qa = gr_nf_ctx.new([-2, 0, 1])
1206-
>>> Qa
1207-
gr_nf_ctx(x^2 + (-2))
1208-
>>> Qa.modulus()
1209-
x^2 + (-2)
1210-
>>> a = Qa.gen()
1211-
>>> a
1212-
a
1213-
>>> a**2
1214-
2
1215-
>>> (1 + a) ** 2
1216-
2*a+3
1217-
>>> (1 + a) / 2
1218-
1/2*a+1/2
1204+
# >>> from flint.types._gr import gr_nf_ctx
1205+
# >>> Qa = gr_nf_ctx.new([-2, 0, 1])
1206+
# >>> Qa
1207+
# gr_nf_ctx(x^2 + (-2))
1208+
# >>> Qa.modulus()
1209+
# x^2 + (-2)
1210+
# >>> a = Qa.gen()
1211+
# >>> a
1212+
# a
1213+
# >>> a**2
1214+
# 2
1215+
# >>> (1 + a) ** 2
1216+
# 2*a+3
1217+
# >>> (1 + a) / 2
1218+
# 1/2*a+1/2
12191219
"""
12201220
poly = fmpq_poly(poly)
12211221
return gr_nf_ctx._new(poly)

0 commit comments

Comments
 (0)