erfc(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Complementary error function
Syntax
Description
Arguments
Return Value
Example
Standard
Class
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 range
0 <= ERFC(X) <= 2.
Sample program:
program demo_erfc real(8) :: x = 0.17_8 x = erfc(x) end program demo_erfc
[[Fortran 2008]] and later
[[Elemental function]]
erfc (3) | March 18, 2019 |