Open mezzarobba opened 13 years ago
I think that this is intended for compatibility with Singular, which is who really computes the elimination ideal. Singular returns an ideal in QQ[x,y,t,s,z], so does SAGE.
If this is going to change one would need to create the new ring of the elimination ideal and coerce the ideal to this ring.
One also has to check that both ring have the canonical coercion well defined and that we can operate ideals and polynomials in both rings automatically.
Also, the code should raise a Warning each time it is called during a transition time.
I am already used to this behaviour and sometimes it is convenient to add further polynomials in the variables of the original ring. So I do not have strong feelings against (or in favour) of this change. It might be more convenient to compute, let's say, dimensions.
I have another idea. We have the intersection method. Used to compute the intersection oftwo ideals. This method could be extended to intersect the ideal with a subring of the form QQ[x1,x2,x3]. This would compute an elimination ideal restricted to the smaller field. Would this approach be convenient?
If
J
is an ideal of a Multivariate Polynomial RingR
,J.elimination_ideal
returns an ideal ofR
, regardless of the variables being eliminated. Is this intentional?For instance, in the doctest
the final result is an ideal of Q[x,y,t,s,z], while I would have expected an ideal of Q[x,y,z].
Component: algebra
Issue created by migration from https://trac.sagemath.org/ticket/10254