Function to calculate the coefficients used in the stehfest inversion. These coefficients \(c_{i}\)are given by: $$c_{i}=(-1)^{i+n/2} \sum_{k=\left[ \frac{i+1}{2} \right]}^{\min{(i.n/2)}} \frac{k^{n/2}(2k)!}{\left(\frac{n}{2}-k\right)!k!(k-1)!(i-k)!(2k-i)!}$$

stehfest_coeffs(n)

Arguments

n

Number of coefficients

Value

Numeric vector with the coefficients

See also

Other laplace functions: stehfest_inversion

Examples

coeffs8 <- stehfest_coeffs(8) coeffs20 <- stehfest_coeffs(20)