]>
Commit | Line | Data |
---|---|---|
c63539ff ML |
1 | .. |
2 | Copyright 1988-2022 Free Software Foundation, Inc. | |
3 | This is part of the GCC manual. | |
4 | For copying conditions, see the copyright.rst file. | |
5 | ||
6 | .. _erfc: | |
7 | ||
8 | .. index:: ERFC | |
9 | ||
10 | .. index:: error function, complementary | |
11 | ||
12 | ERFC --- Error function | |
13 | ************************ | |
14 | ||
15 | .. function:: ERFC(X) | |
16 | ||
17 | ``ERFC(X)`` computes the complementary error function of :samp:`{X}`. | |
18 | ||
19 | :param X: | |
20 | The type shall be ``REAL``. | |
21 | ||
22 | :return: | |
23 | The return value is of type ``REAL`` and of the same kind as :samp:`{X}`. | |
24 | It lies in the range 0 \leq erfc (x) \leq 2 . | |
25 | ||
26 | Standard: | |
27 | Fortran 2008 and later | |
28 | ||
29 | Class: | |
30 | Elemental function | |
31 | ||
32 | Syntax: | |
33 | .. code-block:: fortran | |
34 | ||
35 | RESULT = ERFC(X) | |
36 | ||
37 | Example: | |
38 | .. code-block:: fortran | |
39 | ||
40 | program test_erfc | |
41 | real(8) :: x = 0.17_8 | |
42 | x = erfc(x) | |
43 | end program test_erfc | |
44 | ||
45 | Specific names: | |
46 | .. list-table:: | |
47 | :header-rows: 1 | |
48 | ||
49 | * - Name | |
50 | - Argument | |
51 | - Return type | |
52 | - Standard | |
53 | ||
54 | * - ``DERFC(X)`` | |
55 | - ``REAL(8) X`` | |
56 | - ``REAL(8)`` | |
3ed1b4ce | 57 | - GNU extension |