#8992: Coercion of univariate quotient polynomial rings
-------------------------+--------------------------------------------------
Reporter: SimonKing | Owner: robertwb
Type: defect | Status: new
Priority: major | Milestone: sage-4.4.2
Component: coercion | Keywords: coercion quotient ring
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------+--------------------------------------------------
Comment(by SimonKing):
I think I found one source of the problem. The call method (that will
become an element_constructor method) says:
{{{
if isinstance(x, PolynomialQuotientRingElement):
P = x.parent()
if P is self:
return x
elif P == self:
return PolynomialQuotientRingElement(self,
self.__ring(x.lift()), check=False)
}}}
In other words: ''Only'' if the parent of x is equal to self, it is
attempted to convert x into self via conversion in the polynomial ring. I
think this condition should simply be dropped.
Furthermore, after the above code block
{{{
return PolynomialQuotientRingElement(self, self.__ring(x) ,
check=True)
}}}
Hence, it is again tried to interprete x in the polynomial ring of self.
But the problem is that the variable names in self and in
{{{self.__ring}}} are usually different. So, conversion of strings must
fail.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8992#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.