in Maxima, how is it possible to simply equations that are components of a matrix? I have a rather big matrix and want to simplify the components of it (e.g. factor out and cancel out).
Thanks.
in Maxima, how is it possible to simply equations that are components of a matrix? I have a rather big 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?
Z_ee:matrix([Z_11,Z_14],[Z_41,Z_44]);
Z_ei:matrix([Z_12,Z_13],[Z_42,Z_43]);
Z_ie:matrix([Z_21,Z_24],[Z_31,Z_34]);
Z_ii:matrix([Z_22,Z_23],[Z_32,Z_33]);
Z_L:matrix([Z_L2,0],[0,Z_L3]);
Z_44:"DUMMY"$ Z_14:0$ Z_41:0$ Z_42:0$ Z_43:0$ Z_24:0$ Z_34:0$
Z_in=xthru(Z_ee-Z_ei.invert(Z_ii+Z_L).Z_ie);
– Asdf
Nov 30 '21 at 05:34