erfc(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Complementary error function
result = erfc(x)
erfc(x) computes the complementary error function of X, defined as $$ 1 - \text{erf}(x) = 1 - \frac{2}{\sqrt{\pi}} \int_0**x e**{-t**2} dt. $$
X The type shall be REAL.
The return value is of type REAL and of the same kind as X. It lies in the range0 <= ERFC(X) <= 2.
Sample program:
program demo_erfc use, intrinsic :: iso_fortran_env, only : real_kinds, real32, real64, real128 implicit none real(kind=real64) :: x = 0.17_real64 x = erfc(x) end program demo_erfc
[[Fortran 2008]] and later
[[Elemental function]]
erfc (3) | March 11, 2021 |