I have a code given by
V =((1/2 - (3 r)/2 + r^2) (r^8 (-1 + (3 r)/2) +
4 (2 - (9 r)/2 + 2 r^2) + 2 r^4 (3 - 9 r + 6 r^2)))/(r^6 (2 +
r^4)^2);
X= r + 5/2 ArcTan[4 (-(3/4) + r)] + 3/4 Log[1/2 - (3 r)/2 + r^2];
zz = X /. r -> 3/2
fV[z0_?NumericQ] :=With[{z = SetPrecision[z0 + zz, 100 + 1]},If[Abs[z]
<= 35,Re[V /. FindRoot[X == z, {r, 10000001/10000000},
MaxIterations -> 10000, WorkingPrecision -> 100]], 0]]
My problem: consider this formula*
Subscript[\[Psi], m, n, p] =
Subscript[\[Psi], m - 1, n - 1, p] + Subscript[\[Psi], m, n, p - 1] -
Subscript[\[Psi], m - 1, n - 1, p - 1] -
h^2/8 (fV[(p - (n - 1))/2 h] Subscript[\[Psi], m - 1, n - 1, p] +
fV[((p - 1) - n)/2 h] Subscript[\[Psi], m, n, p - 1])
with the following initial conditions
Subscript[\[Psi], 0, 0, 0] = 1;
Subscript[\[Psi], 1, 1, 0] = 1;
Subscript[\[Psi], 2, 2, 0] = 1;
Subscript[\[Psi], 3, 3, 0] = 1;
Subscript[\[Psi], 4, 4, 0] = 1;
Subscript[\[Psi], 5, 5, 0] = 1;
Subscript[\[Psi], 6, 6, 0] = 1;
Subscript[\[Psi], 7, 7, 0] = 1;
Subscript[\[Psi], 8, 8, 0] = 1;
Subscript[\[Psi], 9, 9, 0] = 1;
Subscript[\[Psi], 10, 10, 0] = 1;
Subscript[\[Psi], 0, 0, p] = Exp[-0.25 (p h)^2];
h = .5;
I need a table given by
Table[{t, Subscript[\[Psi], t/h, t/h, t/h]}, {t, 0, 5, h}]
as the result of calculations. How can I tell the Mathematica to calculate Subscript[\[Psi], m, n, p]
from formula* and provide me the mentioned table? I will be thankful if someone helps.