Skip to content

Commit 0bbdb6c

Browse files
author
Matthias Koeppe
committed
sage.rings: More # optional
1 parent df0845e commit 0bbdb6c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/sage/rings/number_field/homset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,10 @@ def _element_constructor_(self, x, base_map=None, base_hom=None, check=True):
342342
are only approximate::
343343
344344
sage: K.<a> = QuadraticField(-7)
345-
sage: f = K.hom([CC(sqrt(-7))], check=False)
345+
sage: f = K.hom([CC(sqrt(-7))], check=False) # optional - sage.symbolic
346346
sage: x = polygen(K)
347347
sage: L.<b> = K.extension(x^2 - a - 5)
348-
sage: L.Hom(CC)(f(a + 5).sqrt(), f, check=False)
348+
sage: L.Hom(CC)(f(a + 5).sqrt(), f, check=False) # optional - sage.symbolic
349349
Relative number field morphism:
350350
From: Number Field in b with defining polynomial x^2 - a - 5 over its base field
351351
To: Complex Field with 53 bits of precision

src/sage/rings/number_field/number_field_element_quadratic.pyx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@ cdef class NumberFieldElement_quadratic(NumberFieldElement_absolute):
506506
507507
Verify embeddings are respected::
508508
509-
sage: cf6c = CyclotomicField(6, embedding=CDF(exp(-pi*I/3))) ; z6c = cf6c.0
510-
sage: cf3(z6c)
509+
sage: cf6c = CyclotomicField(6, embedding=CDF(exp(-pi*I/3))); z6c = cf6c.0 # optional - sage.symbolic
510+
sage: cf3(z6c) # optional - sage.symbolic
511511
-zeta3
512-
sage: cf6c(z3)
512+
sage: cf6c(z3) # optional - sage.symbolic
513513
-zeta6
514514
515515
AUTHOR:
@@ -2215,7 +2215,7 @@ cdef class NumberFieldElement_quadratic(NumberFieldElement_absolute):
22152215
22162216
sage: x = polygen(ZZ, 'x')
22172217
sage: K.<a> = NumberField(x^2 + 1, embedding=CDF.gen())
2218-
sage: abs(a+1)
2218+
sage: abs(a+1) # optional - sage.symbolic
22192219
sqrt(2)
22202220
"""
22212221
if mpz_sgn(self.D.value) == 1:

0 commit comments

Comments
 (0)