Why does the error occur for P[34, 14] whereas for P[33, 14] has no error? How to get rid of this error?
ClearAll["Global`*"]
Psi[r_, n_] := (-1)^n Exp[-1/2 r^2] Sqrt[2 n!/Gamma[n + 3/2]]*
LaguerreL[n, 1/2, r^2];
P[n1_, n2_] :=
NIntegrate[
Psi[r, n2]4.915/rExp[-r*1.65]Psi[r, n1]r^2, {r,
0, [Infinity]}];
P[33, 14]
Out[1008]= -0.500849
P[34, 14]
During evaluation of In[1009]:= NIntegrate::ncvb: NIntegrate failed to converge to prescribed accuracy after 9 recursive bisections in r near {r} = {6.42115}. NIntegrate obtained 0.488132829059508and 9.895807414830366*^-7 for the integral and error estimates.
Out[1009]= 0.488133
v12on a mac – bmf Dec 18 '22 at 15:01