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

Commit 115cf04

Browse files
Improved doc and example of _base_ring_to_fraction_field
1 parent db72757 commit 115cf04

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

src/sage/rings/polynomial/skew_polynomial_ring.py

+11-13
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,26 @@
5353

5454
def _base_ring_to_fraction_field(S):
5555
"""
56-
TODO
57-
Return the indeterminate generator, one and twist map of
58-
``self``, or of the skew polynomial ring `S` associated
59-
with the fraction field of the base ring of ``self`` if
60-
the base ring of ``self`` is not a field (internal method).
56+
Return the unique skew polynomial ring over the fraction field of
57+
``S.base_ring()`` which has ``S`` a sub-ring (internal method).
6158
62-
OUTPUT:
59+
INPUT:
6360
64-
- ``x`` -- indeterminate generator of ``self`` or `S`
61+
- ``S`` -- a skew polynomial ring.
6562
66-
- ``one`` -- one of ``self`` or `S`
63+
OUTPUT:
6764
68-
- ``sigma`` -- twist map of ``self`` or `S`
65+
- ``Q`` -- the skew polynomial ring over the fraction field of
66+
``S.base_ring``.
6967
7068
EXAMPLES:
7169
70+
sage: from sage.rings.polynomial.skew_polynomial_ring import _base_ring_to_fraction_field
7271
sage: R.<t> = ZZ[]
7372
sage: sigma = R.hom([t+1])
74-
sage: T.<x> = R['x', sigma]
75-
sage: points = [ (t, 3*t^2 + 4*t + 4) , (t^2, 4*t) ]
76-
sage: p = T.lagrange_polynomial(points); p #indirect doctest
77-
((3*t^3 + 4*t^2)/(-t - 1))*x + (-3*t^3 - 7*t^2 - 4*t - 4)/-t
73+
sage: S.<x> = R['x', sigma]
74+
sage: _base_ring_to_fraction_field(S)
75+
Skew Polynomial Ring in x over Fraction Field of Univariate Polynomial Ring in t over Integer Ring twisted by t |--> t + 1
7876
"""
7977
R = S.base_ring()
8078
if isinstance(R, Field):

0 commit comments

Comments
 (0)