erfc | R Documentation |
Computes the complementary error function of a (possibly) complex valued argument. This function is
2/√{π} \int_{z}^{∞} \exp^{-t^2} dt
.
erfc(z)
z |
Argument of complementary error function |
Computes the complementary error function of a (possibly) complex valued argument. This function is
2/√{π} \int_{z}^{∞} \exp^{-t^2} dt
This function actually calls FORTRAN code (algorithm TOMS 680) which computes the Faddeeva's function and then with a slight modification obtains the erfc function of a complex-valued argument.
The complementary error function of z
Guy P. Nason, Department of Mathematics, University of Bristol
Poppe, G.P.M. and Wijers, C.M.J. (1990) More efficient computation of the complex error function. ACM Transactions on Mathematical Software, 16, 38–46.
erf
erfc(0) # # Should give 1 # erfc(1) # # Should give 0.1572992+0i # erfc(complex(re=1, im=1)) # # Should give -0.3161513-0.1904535i #
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.