\[Lambda] = 2;
g = 1/50;
m = 1;
h = 1;
V[x_] =(*g*(x^2-\[Lambda]^2/(8*g))^2=*)-1/4*\[Lambda]^2*x^2 + g*x^4 + \[Lambda]^4/(64*g);
\[ScriptCapitalL] = -h^2/(2 m)*Laplacian[u[x], {x}] + V[x]*u[x];
{vals, funs} = NDEigensystem[\[ScriptCapitalL], u[x], {x, -10, 10}, 50, Method -> {"SpatialDiscretization" -> {"FiniteElement", \
{"MeshOptions" -> {MaxCellMeasure -> 0.05}}},"Eigensystem" -> {"Arnoldi", MaxIterations -> 80000}}];
trunc = 4;
Table[xt[n, m] = Integrate[funs[[n]]*funs[[m]]*x, {x, -10, 10}, Assumptions -> {n \[Element] Integers, m \[Element] Integers}], {m, 0, trunc}, {n, 0, trunc}]; `
I have used NDEigensytem to solve the Schrodinger equation of the above-mentioned potential. The eigenvalues and eigenfunctions are correct. However, it's not working when I try to measure the expectation value. Why is it not working?