#
Fortran Wiki

erfc_scaled

## Description

`erfc_scaled(x)`

computes the exponentially-scaled complementary error function of `x`

:

$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
end program test_erfc_scaled
```

Revised on June 15, 2012 09:44:14
by

Anonymous Coward
(134.94.160.96)
(692 characters / 0.0 pages)