XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ jtheta4()

double jtheta4 ( double  x,
double  q 
)

Jacobi theta function θ4(x, q)

Purpose
This function computes the Jacobi theta function θ4.
θ4(x, q) = 1 + 2Σ(-1)^n q^(n^2) cos(2nx) (Σ for n = 1 to ∞)
Returns
Jacobi theta function θ4(x, q).
Parameters
[in]xArgument x.
[in]qArgument q. (0 < q < 1)
Error handling
  • If q <= 0 or q >= 1, domain error (EDOM) occurs.
  • Range error (ERANGE) may be reported.
Reference
boost/math/special_functions