Showing changes from revision #3 to #4:
Added | Removed | Changed
erf(x) computes the error function of x, defined as
\\text{erf}(x) = \\frac{2}{\\sqrt{\\pi}} \\int_0^x e^{-t^2} dt.
Fortran 2008 and later
result = erf(x)
x - The type shall be real.The return value is of type real, of the same kind as x and lies in the range .-1 \\leq erf (x) \\leq 1
program test_erf
real(8) :: x = 0.17_8
x = erf(x)
end program test_erf