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

Commit ba8c658

Browse files
committed
34212: fix doc and code
1 parent 2e9c42a commit ba8c658

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/sage/rings/number_field/number_field.py

+9-10
Original file line numberDiff line numberDiff line change
@@ -9317,31 +9317,31 @@ def logarithmic_embedding(self, prec=53):
93179317
93189318
OUTPUT:
93199319
9320-
- a tuple of real numbers.
9320+
- the morphism of ``self`` under the logarithmic embedding in the category Set.
93219321
93229322
EXAMPLES::
93239323
9324-
sage: CF.<a> = CyclotomicField(97)
9324+
sage: CF.<a> = CyclotomicField(5)
93259325
sage: f = CF.logarithmic_embedding()
93269326
sage: f(0)
9327-
(-1)
9327+
(-1, -1)
93289328
sage: f(7)
9329-
(1.94591014905531)
9329+
(3.89182029811063, 3.89182029811063)
93309330
93319331
::
93329332
93339333
sage: K.<a> = NumberField(x^3 + 5)
93349334
sage: f = K.logarithmic_embedding()
93359335
sage: f(0)
9336-
(-1)
9336+
(-1, -1)
93379337
sage: f(7)
9338-
(1.94591014905531)
9338+
(1.94591014905531, 3.89182029811063)
93399339
"""
93409340
def closure_map(x, prec=53):
93419341
"""
93429342
The function closure of the logarithmic embedding.
93439343
"""
9344-
K = self.base_ring()
9344+
K = self
93459345
K_embeddings = K.places(prec)
93469346
r1, r2 = K.signature()
93479347
r = r1 + r2 - 1
@@ -9362,9 +9362,8 @@ def closure_map(x, prec=53):
93629362

93639363
return vector(x_logs)
93649364

9365-
log_map = closure_map(self(0), prec)
9366-
hom = Hom(self, VectorSpace(RR, len(log_map)), Sets())
9367-
return hom(log_map)
9365+
hom = Hom(self, VectorSpace(RR, len(closure_map(self(0), prec))), Sets())
9366+
return hom(closure_map)
93689367

93699368
def places(self, all_complex=False, prec=None):
93709369
r"""

0 commit comments

Comments
 (0)