id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
10552 Allow more elementwise simplifications for symbolic matrices kcrisman burcin "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." enhancement needs_work minor sage-6.4 symbolics matrix symbolic simplify expand jason rbeezer Joris Vankerschaver Karl-Dieter Crisman N/A