#20455: rewrite buggy Expression.coefficients() without Maxima
-------------------------+----------------------------
Reporter: rws | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-7.2
Component: symbolics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+----------------------------
At the moment the `ex1.coefficients(ex2)` method uses pexpect-Maxima to
get a coefficient list of a symbolic expression `ex1` when seen as a
polynomial in `ex2` but the list is wrong whenever the exponent of `ex2`
is nonnumeric:
{{{
sage: var('a, x')
(a, x)
sage: f = a*x - x^x
sage: f.coefficient(x^x)
-1
sage: f.coefficients(x)
[[-x^x, 0], [a, 1]]
}}}
It should not be difficult to rewrite `coefficients` using wildcard power
search and the `coefficient` method (which doesn't use Maxima).
--
Ticket URL: <http://trac.sagemath.org/ticket/20455>
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.