erf | R Documentation |
Computes the error function of a (possibly) complex valued argument. This function is 1-erfc(z).
erf(z)
z |
Argument of error function |
Computes the error function of a (possibly) complex valued argument by computing the complementary error function and subtracting the answer from 1.
The 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.
erfc
erf(0) # # Should give 0 # erf(1) # # Should give 0.8427008+0i # erf(complex(re=1, im=1)) # # Should give 1.316151+0.1904535i #
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.