@@ -528,6 +528,8 @@ def __init__(self, E=None, urst=None, F=None):
528
528
529
529
self ._mpoly_ring = PolynomialRing (base_ring , ['x' ,'y' ])
530
530
self ._poly_ring = PolynomialRing (base_ring , ['x' ])
531
+ self ._xyfield = self ._mpoly_ring .fraction_field ()
532
+ self ._xfield = self ._poly_ring .fraction_field ()
531
533
532
534
self ._domain = E
533
535
self ._codomain = F
@@ -773,14 +775,16 @@ def rational_maps(self):
773
775
sage: w(P).xy() == (f(P.xy()), g(P.xy()))
774
776
True
775
777
776
- TESTS::
778
+ TESTS:
779
+
780
+ Check for :trac:`34811`::
777
781
778
782
sage: iso.rational_maps()[0].parent()
779
- Multivariate Polynomial Ring in x, y over Rational Field
783
+ Fraction Field of Multivariate Polynomial Ring in x, y over Rational Field
780
784
sage: iso.rational_maps()[1].parent()
781
- Multivariate Polynomial Ring in x, y over Rational Field
785
+ Fraction Field of Multivariate Polynomial Ring in x, y over Rational Field
782
786
"""
783
- return tuple (baseWI .__call__ (self , self ._mpoly_ring .gens ()))
787
+ return tuple (baseWI .__call__ (self , self ._xyfield .gens ()))
784
788
785
789
def x_rational_map (self ):
786
790
"""
@@ -800,12 +804,14 @@ def x_rational_map(self):
800
804
sage: iso.x_rational_map() == iso.rational_maps()[0]
801
805
True
802
806
803
- TESTS::
807
+ TESTS:
808
+
809
+ Check for :trac:`34811`::
804
810
805
811
sage: iso.x_rational_map().parent()
806
- Univariate Polynomial Ring in x over Rational Field
812
+ Fraction Field of Univariate Polynomial Ring in x over Rational Field
807
813
"""
808
- x , = self ._poly_ring .gens ()
814
+ x , = self ._xfield .gens ()
809
815
return (x - self .r ) / self .u ** 2
810
816
811
817
def kernel_polynomial (self ):
0 commit comments