Re: Substituting a combination of variables in a matrix

7 views
Skip to first unread message

Robert Dodier

unread,
Apr 23, 2013, 2:35:15 PM4/23/13
to sage-s...@googlegroups.com
On 2013-04-23, Lorenzo Ricciardi <lorenzo.a...@gmail.com> wrote:

> Basically, I've been performing various matrix operations, with
> symbolic elements.
> The final result is very complex, but I can see patterns within it,
> so i wanted to rename those patterns with new variable names. That
> way, I can express the final result in terms of these new variables only.

The Maxima function 'optimize' replaces common subexpressions with
made-up variables, and the result is an expression which can be
evaluated to give the same result as the original (ignoring
order-of-evaluation effects). Dunno what might be available in Sage
proper.

best

Robert Dodier

Reply all
Reply to author
Forward
0 new messages