[UP]


Manual Reference Pages  - erf (3)

NAME

erf(3f) - [FORTRAN:INTRINSIC:MATHEMATICS] Error function

CONTENTS

Description
Syntax
Arguments
Return Value
Example
Standard
Class

DESCRIPTION

erf(x) computes the error function of X, defined as $$ \text{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0**x e**{-t**2} dt. $$

SYNTAX

result = erf(x)

ARGUMENTS

X - The type shall be REAL.

RETURN VALUE

The return value is of type REAL, of the same kind as X and lies in the range -1 <= erf(x) <= 1 .

EXAMPLE

Sample program:

    program demo_erf
      real(8) :: x = 0.17_8
      x = erf(x)
    end program demo_erf

STANDARD

[[Fortran 2008]] and later

CLASS

[[Elemental procedure|Elemental function]]


erf (3) March 18, 2019
Generated by manServer 1.08 from 2dbd0f6e-f158-4b8f-a369-82b92d703b7c using man macros.