- 余经武用户2024-11-22[[{"txt": "from numpy import *#\u8ba1\u7b97\u77e9\u9635\u5bf9\u5e94\u7684\u884c\u5217\u5f0fX=mat([[1, 0, 0], [0, 2, 0],[0, 0, 3]])#1*2*3=6print(linalg.det(X)) Y=2*X#2^3*(1*2*3)=6print(linalg.det(Y))#\u884c\u3001\u5217\u4ea4\u6362\uff0c\u5176\u503c\u4e0d\u53d8print(X.T,linalg.det(X.T))#\u4e24\u884c\u4ea4\u6362\uff0c\u5176\u503c\u53d8\u53f7X2=mat([[0, 2, 0],[1, 0, 0], [0, 0, 3]])print(X,linalg.det(X2))#\u63d0\u51fa\u7b2c\u4e00\u884c\u7684\u516c\u56e0\u5b502X3=mat([[0, 1, 0],[1, 0, 0], [0, 0, 3]]) print(X,linalg.det(X3),2*linalg.det(X3))"}, {"txt": "\u8fd0\u884c\u7ed3\u679c\uff1a"}, {"txt": "6.048.0[[1 0 0]\u00a0[0 2 0]\u00a0[0 0 3]] 6.0[[1 0 0]\u00a0[0 2 0]\u00a0[0 0 3]] -6.0[[1 0 0]\u00a0[0 2 0]\u00a0[0 0 3]] -3.0 -6.0"}]]1楼