#17624: Coerce factorization of polynomial to symbolic expression
-------------------------------------+-------------------------------------
Reporter: gagern | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.10
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: Ralf Stephan | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/rws/coerce_factorization_of_polynomial_to_symbolic_expression|
ec9cd10617f78bb1a8a0d1550d1accb6c765bc1e
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by rws):
Well it doesn't work with integers, either:
{{{
sage: m = matrix([[6,15], [35,49]])
sage: m.apply_map(factor)
...
}}}
and so is clearly not a problem of this ticket.
Of course you need to explicitly cast to `SR` (like you did in the ticket
description):
{{{
sage: R.<a,b> = QQ[]
sage: m = matrix([[a^2-b^2, a^3-a*b^2], [a*b + b^2, -77*a+77*b]])
sage: f = lambda n: SR(factor(n))
sage: m.apply_map(f)
[ (a + b)*(a - b) -(a + b)*(a - b)*a]
[ (a + b)*b a - b]
}}}
It's just that the string crutch is no longer needed.
--
Ticket URL: <http://trac.sagemath.org/ticket/17624#comment:4>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.