The integral over the half-oscillations between roots of the integrand seems to be decreasing rapidly, so one can estimate the whole integral as an alternating sum:
(* Integrand from @user64494 *)
g = x^2*HypergeometricPFQ[{1/2}, {3/4, 5/4, 3/2}, x^4/256] -
2*Gamma[1/4]/(Sqrt[Pi])*x*
HypergeometricPFQ[{1/4}, {1/2, 3/4, 5/4}, x^4/256] +
Sqrt[2/π] Gamma[1/4] Gamma[3/4];
(* Find roots of the integrand *)
(roots = With[{f = g},
Reap@NDSolve[{t'[x] == 1, t[0] == 0,
WhenEvent[f == 0, Sow[x]]}, {}, {x, 0, 200},
PrecisionGoal -> 7, WorkingPrecision -> 500,
MaxStepSize -> 1/2]][[2, 1]];
roots2 = FindRoot[g, {x, #}, WorkingPrecision -> 500] & /@ roots;
) // AbsoluteTiming
(* {64.5725, Null} *)
(* terms to sum 0..Infinity *)
ClearAll[term];
mem : term[i_?NumberQ] :=
mem = Module[{iRes},
Check[iRes =
NIntegrate[g, {x, x /. roots2[[i]], x /. roots2[[1 + i]]},
PrecisionGoal -> 20, AccuracyGoal -> Infinity,
WorkingPrecision -> 100 + 2 i,
Method -> {"GaussKronrodRule", "Points" -> 15}],
Print["i = ", i]];
iRes];
term[0] = NIntegrate[g, {x, 0, x /. roots2[[1]]}, PrecisionGoal -> 20,
AccuracyGoal -> Infinity, WorkingPrecision -> 200,
Method -> {"GaussKronrodRule", "Points" -> 15}];
NSum[term[Round@i], {i, 0, ∞}, Method -> "AlternatingSigns",
"VerifyConvergence" -> False, WorkingPrecision -> 100] // AbsoluteTiming
(*
{61.4593,
-9.41471026473132271164542801174142339911608047122339101*10^-58}
*)
Checking the last term calculated by NSum
gives an upper bound on the error, assuming the terms continue to be alternating and monotonically decreasing:
DownValues[term][[-2]]
(* HoldPattern[term[131]] :> -1.76932...88*10^-104 *)
2 Sqrt[π] - 2 MeijerG[{{1/2, 3/4}, {1/4, 1}}, {{0}, {}}, 4/x, 1/4]
$\endgroup$