I'm currently working with the HeunB function, and am finding that its numerical precision is not sufficient at large arguments - in particular I have the function $\text{HeunB}\left[-k^2,1-\beta ,\frac{1}{2},0,2 \beta ,t\right]$, which from what I can tell, for $\beta\geq 0$ and $t\gg 1/\sqrt{\beta}$, grows like $e^{-\beta t^2/2}$.
This is a problem since my calculation ultimately comes down to the cancellation between two such functions, and requires more digits than mathematica is willing to give me:
Manipulate[ LogLogPlot[{Abs[\[Xi] 2 E^(\[Beta] \[Xi]^2) ( HeunB[-k^2, 1, 3/2, 0, 2 \[Beta], t] HeunB[-k^2, 1 - \[Beta], 1/ 2, 0, 2 \[Beta], \[Xi]] - Sqrt[\[Xi]/t] HeunB[-k^2, 1, 3/2, 0, 2 \[Beta], \[Xi]] HeunB[-k^2, 1 - \[Beta], 1/2, 0, 2 \[Beta], t])]}, {\[Xi], 0, t}, PlotPoints -> 4, GridLines -> {{Sqrt[2/\[Beta]]}, {}}, PlotRange -> {0.000001, 100}], {k, 0, 10}, {\[Beta], 0.1, 10}, {t, 1, 20}]
Plotting the above function, you'll notice a dramatic numerical blow up as you take $t$ and $\beta$ larger.
Is there any way to get mathematica to spit out more digits?
With[{k = 1, β = 1/10, t = 123}, N[HeunB[-k^2, 1 - β, 1/2, 0, 2 β, t], 10^3]]
correctly spits out 1000 digits of the result. What exactly is your question? Please provide a concrete example of a result you're not happy with: input, actual output, desired output. Including values of all required parameters for a concrete example. $\endgroup$