- 87 名前:132人目の素数さん mailto:sage [2015/11/20(金) 18:46:42.15 ID:iwwtB9CQ.net]
- これで、如何でしょうか?
Print["(*4元ベクトル*)"]; g4 = {{1, 0, 0, 0}, {0, -1, 0, 0}, {0, 0, -1, 0}, {0, 0, 0, -1}}; ep = (1/Sqrt[2])*{0, 1, 1, 0}; epdash = (1/Sqrt[2])*{0, Cos[theta], 1, Sin[theta]}; Simplify[ep.g4.ep] Simplify[epdash.g4.epdash] Print["(*3次元空間ベクトル分解*)"]; g3 = {{1, 0, 0}, {0, 1, 0}, {0, 0, 1}}; ep1 = {1, 0, 0}; ep2 = {0, 1, 0}; epdash1 = {Cos[theta], 0, Sin[theta]}; epdash2 = {0, 1, 0}; Simplify[(ep1.g3.epdash1)^2 + (ep2.g3.epdash2)^2 + (ep1.g3.epdash2)^2 \ + (ep2.g3.epdash1)^2] Simplify[ep1.g3.ep1] Simplify[ep2.g3.ep2] Simplify[ep1.g3.epdash1] Simplify[ep2.g3.epdash2] Simplify[ep1.g3.epdash2] Simplify[epdash2.g3.ep1]
|

|