Fortran Wiki
erfc_scaled

Description

erfc_scaled(x) computes the exponentially-scaled complementary error function of x:

e x 22π x e t 2dt.e^{x^2} \frac{2}{\sqrt{\pi}} \int_{x}^{\infty} e^{-t^2} dt.

Standard

Fortran 2008 and later

Class

Elemental function

Syntax

result = erfc_scaled(x)

Arguments

  • x - The type shall be real.

Return value

The return value is of type real and of the same kind as x.

Example

program test_erfc_scaled
  real(kind(0.0d0)) :: x = 0.17_8
  x = erfc_scaled(x)
  print *, x ! prints approx. 0.83375830214998126
end program test_erfc_scaled

category: intrinsics