MaTX

 作成、更新 2000-04-20

MaTXは行列演算パッケージですが、右図の様に整式を作ったり、その解(roots())を求めたりできます。 =DOSCMD
MaTX Interpreter (matx)

        Windows95/NT(Visual C++) version 5.0.5
        last modified Fri Jan 28 18:28:19 JST 2000
        Copyright (C) 1989-2000, Masanobu Koga
        Send bugs and comments to matx@matx.org
        Type 'quit' to exit, 'help' for functions, 'demo'
        for demonstration.

         MaTX (50) x=Polynomial("x");
         MaTX (51) y=(x-1)*(x-2)*(x-3)
        y = x^3 - 6 x^2 + 11 x - 6
         MaTX (52) roots(y)
        === [ans] : ( 3, 1) ===
        [ ( 1)-Real              ( 1)-Imag ]
        ( 1) 3.00000000E+000 0.00000000E+000
        ( 2) 2.00000000E+000 0.00000000E+000
        ( 3) 1.00000000E+000 0.00000000E+000

         MaTX (53) A=[ [1 2]
                       [3 4] ]
        === [A] : ( 2, 2) ===
                 ( 1)             ( 2)
        ( 1) 1.00000000E+000 2.00000000E+000
        ( 2) 3.00000000E+000 4.00000000E+000
        
        MaTX (54) B=[ [ 2 3]
                      [ 4 5] ];
   
        MaTX (55) A*B
        === [ans] : ( 2, 2) ===
                 ( 1)             ( 2)
        ( 1) 1.00000000E+001 1.30000000E+001
        ( 2) 2.20000000E+001 2.90000000E+001
sの項の整式を作る事により、伝達関数や周波数応答を作ることも出来ます。 bodeplot.png