我嘗試交朋友物理包和矩陣。但我面臨困難。具體而言,考慮代碼:楓 - 物理封裝非常大的錯誤或矩陣
with(Physics)
Setup(mathematicalnotation = true)
Coordinates(X)
Setup(tensors = A[mu](X))
PDEtools:-declare(A(X), p0(X), pm(X), pp(X), pt(X), U(X), m5(X))
然後我創建了一個矩陣:
pt := proc (X) options operator, arrow; Matrix(2, 2, [[p0(X), sqrt(2)*pp(X)], [sqrt(2)*pm(X), -p0(X)]]) end proc;
NULL;
爲什麼P0,PP,PM成爲功能只有一個變量X1?
有趣的是楓木理解 the next matrix
爲什麼只有一個變量?