This repository was archived by the owner on Jan 30, 2023. It is now read-only.
File tree 1 file changed +11
-13
lines changed
src/sage/rings/polynomial
1 file changed +11
-13
lines changed Original file line number Diff line number Diff line change 53
53
54
54
def _base_ring_to_fraction_field (S ):
55
55
"""
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).
61
58
62
- OUTPUT :
59
+ INPUT :
63
60
64
- - ``x `` -- indeterminate generator of ``self`` or `S`
61
+ - ``S `` -- a skew polynomial ring.
65
62
66
- - ``one`` -- one of ``self`` or `S`
63
+ OUTPUT:
67
64
68
- - ``sigma`` -- twist map of ``self`` or `S`
65
+ - ``Q`` -- the skew polynomial ring over the fraction field of
66
+ ``S.base_ring``.
69
67
70
68
EXAMPLES:
71
69
70
+ sage: from sage.rings.polynomial.skew_polynomial_ring import _base_ring_to_fraction_field
72
71
sage: R.<t> = ZZ[]
73
72
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
78
76
"""
79
77
R = S .base_ring ()
80
78
if isinstance (R , Field ):
You can’t perform that action at this time.
0 commit comments