#8968: magma.Resultant() gives error
------------------------+---------------------------------------------------
Reporter: mariah | Owner: was
Type: defect | Status: closed
Priority: minor | Milestone: sage-4.4.3
Component: interfaces | Resolution: wontfix
Keywords: | Author: Mariah Lenox
Upstream: N/A | Reviewer:
Merged: | Work_issues:
------------------------+---------------------------------------------------
Changes (by was):
* status: new => closed
* resolution: => wontfix
* milestone: => sage-4.4.3
Comment:
You have to do {{{R.<x> = QQ[]}}} first, which is the analogue of Magma's
{{{R<x> := PolynomialRing(RationalField());}}} . Otherwise, x is merely a
formal symbolic variable (in the sense of Sage's maple-like symbolic
calculus package), and since Magma has no functionality for working with
symbolic expressions, it just turns symbolic expressions into strings in
Magma. So here's the way to do the computation you want:
{{{
sage: R.<x> = QQ[]
sage: poly0 = x^2 + x + 1
sage: poly1 = x^3 + x + 1
sage: p0 = magma(poly0)
sage: p1 = magma(poly1)
sage: magma.Resultant(p0,p1)
3
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8968#comment:1>
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.