#10552: Allow symbolic matrices to be simplified elementwise
---------------------------+------------------------------------------------
Reporter: kcrisman | Owner: burcin
Type: enhancement | Status: new
Priority: minor | Milestone:
Component: symbolics | Keywords: matrix symbolic simplify expand
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
As with [http://ask.sagemath.org/question/211/is-there-a-way-to-
simplify_full-and-trig_reduce-a several]
[http://ask.sagemath.org/question/273/reduce_trig-for-matrices questions]
at ask.sagemath. Mike Hansen's answer at the first one seems like a good
start:
{{{
age: m = matrix([[sin(x), cos(x)], [sin(x), cos(x)]]); m
[sin(x) cos(x)]
[sin(x) cos(x)]
sage: o = m*m.transpose(); o
[sin(x)^2 + cos(x)^2 sin(x)^2 + cos(x)^2]
[sin(x)^2 + cos(x)^2 sin(x)^2 + cos(x)^2]
sage: o.apply_map(lambda x: x.trig_reduce())
[1 1]
[1 1]
}}}
but it seems reasonable for matrices with symbolic elements to have some
of these methods (also vectors, I suppose) without having to use any
special terminology.
Open to suggestions on how that might be accomplished without creating a
myriad of special methods, but by somehow piggybacking on
`symbolic.expression.Expression` methods done elementwise...
Putting this under symbolics because it isn't really linear algebra, but
that doesn't seem right either.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10552>
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.