theta1dash.Rd
First, second, and third derivatives of the theta functions
theta1dash(z, ignore = NULL, m = NULL, q = NULL, give.n = FALSE,
maxiter = 30, miniter=3)
theta1dashdash(z, ignore = NULL, m = NULL, q = NULL, give.n = FALSE,
maxiter = 30,miniter=3)
theta1dashdashdash(z, ignore = NULL, m = NULL, q = NULL, give.n = FALSE,
maxiter = 30,miniter=3)
Primary complex argument
Dummy argument to force the user to name the next
argument either m
or q
m as documented in theta1()
q as documented in theta1()
Boolean with default FALSE
meaning to return the
function evaluation, and TRUE
meaning to return a two element
list, with first element the function evaluation, and second element
the number of iterations used
Maximum number of iterations
Minimum number of iterations to guard against premature exit if an addend is zero exactly
Uses direct expansion as for theta1()
et seq
M. Abramowitz and I. A. Stegun 1965. Handbook of Mathematical Functions. New York, Dover
m <- 0.3+0.31i
z <- seq(from=1,to=2+1i,len=7)
delta <- 0.001
deriv.numer <- (theta1dashdash(z=z+delta,m=m) - theta1dashdash(z=z,m=m))/delta
deriv.exact <- theta1dashdashdash(z=z+delta/2,m=m)
abs(deriv.numer-deriv.exact)
#> [1] 1.716548e-08 1.209901e-08 1.190115e-08 1.813467e-08 3.291486e-08
#> [6] 5.981474e-08 1.042222e-07