Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 3851908

Browse files
author
Matthias Koeppe
committed
src/sage/categories/pushout.py: In doctest, avoid using symbolics
1 parent 5d82771 commit 3851908

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/sage/categories/pushout.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -3297,11 +3297,13 @@ def merge(self, other):
32973297
are embedded into a field that is not a numberfield, no merging
32983298
occurs::
32993299
3300-
sage: K.<a> = NumberField(x^3-2, embedding=CDF(1/2*I*2^(1/3)*sqrt(3) - 1/2*2^(1/3))) # optional - sage.symbolic
3300+
sage: cbrt2 = CDF(2)^(1/3)
3301+
sage: zeta3 = CDF.zeta(3)
3302+
sage: K.<a> = NumberField(x^3-2, embedding=cbrt2 * zera3)
33013303
sage: L.<b> = NumberField(x^6-2, embedding=1.1)
3302-
sage: L.coerce_map_from(K) # optional - sage.symbolic
3303-
sage: K.coerce_map_from(L) # optional - sage.symbolic
3304-
sage: pushout(K,L) # optional - sage.symbolic
3304+
sage: L.coerce_map_from(K)
3305+
sage: K.coerce_map_from(L)
3306+
sage: pushout(K,L)
33053307
Traceback (most recent call last):
33063308
...
33073309
CoercionException: ('Ambiguous Base Extension', Number Field in a with defining polynomial x^3 - 2 with a = -0.6299605249474365? + 1.091123635971722?*I, Number Field in b with defining polynomial x^6 - 2 with b = 1.122462048309373?)

0 commit comments

Comments
 (0)