|
|
◆ Jtheta2_sub()
| Sub Jtheta2_sub |
( |
Ret As |
Double, |
|
|
X As |
Double, |
|
|
Q As |
Double, |
|
|
Optional Info As |
Long |
|
) |
| |
Jacobi theta function θ2(x, q) (Subroutine version)
- Purpose
- Computes the Jacobi theta function θ2.
θ2(x, q) = 2Σq^(n + 1/2) cos((2n + 1)x) (Σ for n = 0 to ∞)
- Parameters
-
| [out] | Ret | Jacobi theta function θ2(x, q). |
| [in] | X | Argument x. |
| [in] | Q | Argument q. (0 < Q < 1) |
| [out] | Info | (Optional)
= 0: Successful exit.
= -2: The argument Q had an illegal value. (Q <= 0 or Q >= 1)
= 1: Floating point range error. |
- Reference
- boost/math/special_functions
|