I tried change_ring(), without success... sage: R.<t>=PowerSeriesRing(QQ) sage: P.<x>=PolynomialRing(R) sage: f=t*x+t^2 sage: g=f/t sage: f t*x + t^2 sage: g x + t sage: f.parent() Univariate Polynomial Ring in x over Power Series Ring in t over Rational Field sage: g.parent() Univariate Polynomial Ring in x over Laurent Series Ring in t over Rational Field sage: g.change_ring(R) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) ... TypeError: Unable to coerce t (<type 'sage.rings.laurent_series_ring_element.LaurentSeries'>) to Rational sage:
Now I am forced to extract coefficients of g, and reconstruct g with the right base ring. Or I may live with laurent series base ring. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---