ERF(X) (Fortran 2008)

Purpose

Error function.

erf(x)

Class

Elemental function

Argument type and attributes

X
An INTENT(IN) REAL

Result type and attributes

Same as X.

Result value

  • The result value approximates erf(X).
  • The result is in the range -1 ≤ ERF(X) ≤ 1.

Examples

ERF (1.0) has the value 0.8427007794 (approximately).

Specific Name Argument Type Result Type Pass As Arg?
ERF default real default real yes
DERF 1  double precision real double precision real yes
QERF 1  REAL(16) REAL(16) yes
Note:
  •  1  IBM extension



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us