#18266: Conversion from Sage polynomial to gap/libgap
-------------------------------------+-------------------------------------
Reporter: vdelecroix | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-7.3
Component: interfaces | Resolution:
Keywords: | Merged in:
Authors: Vincent Delecroix | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/vdelecroix/18266 | f1b8bcd98ffadede706ec244975fab07fa3bd942
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by {'newvalue': u'Vincent Delecroix', 'oldvalue': ''}):
* status: new => needs_review
* author: => Vincent Delecroix
Old description:
> Currently sage is not able to convert back polynomials from libgap
> {{{
> sage: libgap.MinimalPolynomial(QQ, libgap.eval("E(3)"))
> x_1^2+x_1+1
> sage: p = libgap.MinimalPolynomial(QQ, libgap.eval("E(3)"))
> sage: p.sage()
> Traceback (most recent call last):
> ...
> NotImplementedError: cannot construct equivalent Sage object
> }}}
New description:
It is not possible to use (in a straightforward way) univariate polynomial
in libgap
{{{
sage: R.<x> = ZZ[]
sage: libgap(x^5+2*x+1)
Traceback (most recent call last):
...
ValueError: libGAP: Error, Variable: 'x' must have a value
}}}
And multivariate polynomials with either gap or libgap
{{{
sage: R.<x,y> = ZZ[]
sage: gap(x+y)
Traceback (most recent call last):
...
TypeError: Gap produced error output
sage: libgap(x+y)
Traceback (most recent call last):
...
ValueError: libGAP: Error, Variable: 'x' must have a value
}}}
The above ticket (partially based on #2420) implement the above
conversions.
Note: The conversion from gap/libgap to Sage does not work as well and
will be delat with in #21020.
--
--
Ticket URL: <https://trac.sagemath.org/ticket/18266#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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.