The y = jacobian_theta(k, x, q) computes the value of one of the Jacobian theta functions ,
,
,
or
for a real argument x and non-negative q ≤ 1.
The routine evaluates an approximation to the Jacobian theta functions ,
,
,
and
given by
where x and q are real with 0 ≤ q ≤ 1. Note that is undefined if
is an integer, as is
if x is an integer. Otherwise,
, for
.
For more information please refer to the s21ccc function in the NAG document.