[UP]


Manual Reference Pages  - erfc (3)

NAME

erfc(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Complementary error function

CONTENTS

Syntax
Description
Arguments
Return Value
Example
Standard
Class

SYNTAX

result = erfc(x)

DESCRIPTION

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. $$

ARGUMENTS

X - The type shall be REAL.

RETURN VALUE

The return value is of type REAL and of the same kind as X. It lies in the range

0 <= ERFC(X) <= 2.

EXAMPLE

Sample program:

   program demo_erfc
     real(8) :: x = 0.17_8
     x = erfc(x)
   end program demo_erfc

STANDARD

[[Fortran 2008]] and later

CLASS

[[Elemental function]]


erfc (3) March 18, 2019
Generated by manServer 1.08 from 60a4e2bf-6ee9-4d7f-b63e-7d60d2e9c693 using man macros.