symbolic
这个包可以支持符号运算
>> pkg install -forge symbolic
>> pkg load symbolic
这样就可以用了 以后开 还是要load
>> pkg load symbolic
>> syms a b c d
OctSymPy v2.3.0: this is free software without warranty, see sourc
e.
Initializing communication with SymPy using a popen2() pipe.
Detected Windows: using "winwrapy.bat" to workaround Octave bug #4
3036
Some output from the Python subprocess (pid 4936) might appear nex
t.
OctSymPy: Communication established. SymPy v1.0.
Python 2.7.11 |Anaconda 4.0.0 (64-bit)| (default, Feb 16 2016, 09:
58:36) [MSC v.1500 64 bit (AMD64)]
>> A = [a b c d;a d c b;c d a b;c b a d]
A = (sym 4x4 matrix)
[a b c d]
[ ]
[a d c b]
[ ]
[c d a b]
[ ]
[c b a d]
>> det(A)
ans = (sym) 0
>> A(3,:) = A(1,:) + A(3,:)
A = (sym 4x4 matrix)
[ a b c d ]
[ ]
[ a d c b ]
[ ]
[a + c b + d a + c b + d]
[ ]
[ c b a d ]
>> A(4,:) = A(2,:) + A(4,:)
A = (sym 4x4 matrix)
[ a b c d ]
[ ]
[ a d c b ]
[ ]
[a + c b + d a + c b + d]
[ ]
[a + c b + d a + c b + d]
行列式性质
任意两行 两列相等 则 行列式 = 0