I am trying to compute this cumulate. However, with very high or very low values of x, the computation is affected by numerical errors.
$$p=1-\frac{2 u}{\sqrt{2 \pi } l \sqrt{t} e^{\frac{(l t+u x)^2}{2 t u^2}} \left(\text{erf}\left(\frac{l t+u x}{\sqrt{2} \sqrt{t} u}\right)-\text{erf}\left(\frac{l t+u (x-t u)}{\sqrt{2} \sqrt{t} u}\right)\right)+2 u}$$
which, for t=1; u=0.5 and l=2 gives this shape which is clearly affected by numerical errors on both sides:

I thinks the problem is due to the really high number in the exponential, which is then multiplied by the really small number of the to erf functions. I tried different solutions (mostly involving expanding the exponential) but none worked.
The computation are done in MATLAB
Any help is appreciated.
