RcppFaddeeva (version 0.1.0)

Faddeeva_w: Faddeeva family of error functions of the complex variable

Description

the Faddeeva function

the scaled complementary error function

the error function of complex arguments

the imaginary error function

the complementary error function

the Dawson function

Usage

Faddeeva_w(z, relerr = 0)
erfcx(z, relerr = 0)
erf(z, relerr = 0)
erfi(z, relerr = 0)
erfc(z, relerr = 0)
Dawson(z, relerr = 0)

Arguments

z
complex vector
relerr
double, requested error

Value

complex vector

Functions

  • Faddeeva_w: compute w(z) = exp(-z^2) erfc(-iz)
  • erfcx: compute erfcx(z) = exp(z^2) erfc(z)
  • erf: compute erf(z)
  • erfi: compute erfi(z) = -i erf(iz)
  • erfc: compute erfc(z) = 1 - erf(z)
  • Dawson: compute Dawson(z) = sqrt(pi)/2 * exp(-z^2) * erfi(z)

Examples

Run this code
Faddeeva_w(1:10 + 1i)
erfcx(1:10 + 1i)
erf(1:10 + 1i)
erfi(1:10 + 1i)
erfc(1:10 + 1i)
Dawson(1:10 + 1i)

Run the code above in your browser using DataCamp Workspace