Skip to content

Commit db5ae7d

Browse files
committed
Fix doctest
1 parent 341e351 commit db5ae7d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

doc/source/_gr.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,16 @@ variables over the Gaussian integers :math:`\mathbb{Z}[i][x,y]` we would do::
1919
>>> ctx = gr_gr_mpoly_ctx.new(gr_fmpzi_ctx, ["x", "y"])
2020
>>> ctx.gens()
2121
[x, y]
22-
>>> ctx.gens_recursive()
23-
[I, x, y]
24-
>>> I, x, y = ctx.gens_recursive()
25-
>>> p = (x + y + I)**2
22+
23+
# XXX: gens_recursive not available in FLINT < 3.1
24+
# >>> ctx.gens_recursive()
25+
# [I, x, y]
26+
# >>> I, x, y = ctx.gens_recursive()
27+
28+
>>> x, y = ctx.gens()
29+
>>> p = (x + y)**2
2630
>>> p
27-
x^2 + 2*x*y + (2*I)*x + y^2 + (2*I)*y - 1
31+
x^2 + 2*x*y + y^2
2832

2933
Some domains such as ``gr_fmpzi_ctx`` are global and do not need to be created.
3034
Others such as ``gr_gr_mpoly_ctx`` are created using :meth:`gr_ctx.new`.

0 commit comments

Comments
 (0)