开发者

Maxima: Simplify matrix components

in Maxima, how is it possible to simply equations that are components of a matrix? I have a rather b开发者_StackOverflowig matrix and want to simplify the components of it (e.g. factor out and cancel out).

Thanks.


Most functions (where appropriate) already thread over lists, matrices, equations, etc...

For example:

(%i1) a : [[cos(x)^2+sin(x)^2,1],[0,sin(x)*cos(x)]];
                      2         2
(%o1)            [[sin (x) + cos (x), 1], [0, cos(x) sin(x)]]
(%i2) trigsimp(a);
(%o2)                    [[1, 1], [0, cos(x) sin(x)]]
(%i3) trigreduce(a);
                 cos(2 x) + 1   1 - cos(2 x)          sin(2 x)
(%o3)          [[------------ + ------------, 1], [0, --------]]
                      2              2                   2
(%i4) expand(%o3);
                                         sin(2 x)
(%o4)                       [[1, 1], [0, --------]]
                                            2

If this doesn't help you, can you give more details of the problem that you're having?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜