Learn R Programming

elliptic (version 0.4-13)

K.fun: quarter period K

Description

Calculates the K.fun in terms of either $m$ (K.fun()) or $k$ (K.fun.k()).

Usage

K.fun(m, strict=TRUE, maxiter=7)

Arguments

m
Real or complex parameter
strict
Boolean, with default TRUE meaning to return an error if the sequence has not converged exactly, and FALSE meaning to return the partial sum, and a warning
maxiter
Maximum number of iterations

References

R. Coquereaux, A. Grossman, and B. E. Lautrup. Iterative method for calculation of the Weierstrass elliptic function. IMA Journal of Numerical Analysis, vol 10, pp119-128, 1990

Examples

Run this code
K.fun(m=0.4)

K.fun(0.4,strict=F, maxiter=5) - ellint_Kcomp(sqrt(0.4))

Run the code above in your browser using DataLab