基本的に、行列の固有値を見つけようとしていますが、約 12 時間かかります。完了すると、すべての固有ベクトルを見つけることができなかったと表示されます (実際にはほとんど見つかりませんでした)。私が実際にできることは、自分のコードを投稿することだけです。誰かが私にいくつかの提案をしてくれることを願っています. 私は mathematica の経験があまりないので、実行時間が遅く、結果が悪いのは、mathematica の能力ではなく、私に関係があるのかもしれません。返信してくれた人に感謝します。本当に感謝しています。
cutoff = 500; (* set a cutoff for the infinite series *)
numStates = cutoff + 1; (* set the number of excited states to be printed *)
If[numStates > 10, numStates = 10];
$RecursionLimit = cutoff + 256; (* Increase the recursion limit to allow for the specified cutoff *)
(* set the mass of the constituent quarks *)
m1 := mS; (* just supposed to be a constant *)
m2 := 0;
(* construct the hamiltonian *)
h0[n_,m_] := 4 Min[n,m] * ((-1)^(n+m) * m1^2 + m2^2);
v[0,m_] := 0;
v[n_,0] := 0;
v[n_,1] := (8/n) * ((1 + (-1)^(n + 1)) / 2);
v[n_,m_] := v[n - 1, m - 1] * (m/(m - 1)) + (8 m/(n + m - 1))*((1 + (-1)^(n + m))/2);
h[n_,m_] := h0[n,m] + v[n,m];
(* construct the matrix from the hamiltonian *)
mat = Table[h[n,m], {n, 0, cutoff}, {m, 0, cutoff}] // FullSimplify;
(* find the eigenvalues and eigenvectors, then reverse the order *)
PrintTemporary["Finding the eigenvalues"];
{vals, vecs} = Eigensystem[N[mat]] // FullSimplify;
$RecursionLimit = 256; (* Put the recursion limit back to the default *)
私のコードはもう少しありますが、これは実際に速度が低下しているポイントです。m1 と m2 の両方を 0 に設定しても特に問題はありませんが、m1 を定数に設定するとすべてがうまくいきません。