erfc_scaled(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Error function
erfc_scaled(x) computes the exponentially-scaled complementary error function of X:
$$ e**{x**2} \frac{2}{\sqrt{\pi}} \int_{x}**{\infty} e**{-t**2} dt. $$
result = erfc_scaled(x)
X The type shall be REAL.
The return value is of type REAL and of the same kind as X.
Sample program:
program demo_erfc_scaled implicit none real(kind(0.0d0)) :: x = 0.17d0 x = erfc_scaled(x) print *, x ! prints approx. 0.83375830214998126 end program demo_erfc_scaled
[[Fortran 2008]] and later
[[Elemental function]]
erfc_scaled (3) | March 11, 2021 |