Is there a way to easily compute the erf function (or the cumulative distribution function of the normal law) in LaTeX?
Currently, I use pgf
to make computation, but I did not find a way to compute erf using pgf
.
I would be happy to use any package that is available to compute erf, or any custom solution to compute that function.
Best Answer
For precise values, I recommend externalizing the calculation, here
gnuplot
is used.Code (needs
--shell-escape
enabled)Output