gives the theta function .


gives the theta constant .


  • Mathematical function, suitable for both symbolic and numerical manipulation.
  • .
  • .
  • .
  • .
  • The are defined only inside the unit q disk; the disk forms a natural boundary of analyticity.
  • Inside the unit q disk, and have branch cuts from to .
  • For certain special arguments, EllipticTheta automatically evaluates to exact values.
  • EllipticTheta can be evaluated to arbitrary numerical precision.
  • EllipticTheta automatically threads over lists.


open allclose all

Basic Examples  (3)

Evaluate numerically:

Plot over a subset of the reals:

Series expansion at the origin with respect to q:

Scope  (13)

Numerical Evaluation  (4)

Evaluate numerically:

Evaluate to high precision:

The precision of the output tracks the precision of the input:

Complex number inputs:

Evaluate efficiently at high precision:

Specific Values  (3)

Value at zero:

EllipticTheta evaluates symbolically for special arguments:

Find the first positive minimum of EllipticTheta[3,x,1/2]:

Visualization  (2)

Plot the EllipticTheta function for various parameters:

Plot the real part of TemplateBox[{4, z, {1, /, 3}}, EllipticTheta]:

Plot the imaginary part of TemplateBox[{4, z, {1, /, 3}}, EllipticTheta]:

Function Properties  (4)

Real and complex domains of EllipticTheta:

EllipticTheta is a periodic function with respect to :

EllipticTheta threads elementwise over lists:

TraditionalForm formatting:

Generalizations & Extensions  (1)

EllipticTheta can be applied to a power series:

Applications  (7)

Plot near the unit circle in the complex q plane:

The number of representations of n as a sum of four squares:

Conformal map from an ellipse to the unit disk:

Visualize the map:

Dirichlet Green's function for the 1D heat equation:

Plot the timedependent temperature distribution:

Form Bloch functions of a onedimensional crystal with Gaussian orbitals:

Plot Bloch functions as a function of the quasiwave vector:

Electrostatic potential in a NaCllike crystal with point-like ions:

Plot the potential in a plane through the crystal:

A concise form of the Poisson summation formula:

Properties & Relations  (2)

Numerically find a root of a transcendental equation:

Sum can generate elliptic theta functions:

Possible Issues  (3)

Machine-precision input is insufficient to give a correct answer:

Use arbitrary-precision arithmetic to obtain the correct result:

EllipticTheta has the attribute NHoldFirst:

Different argument conventions exist:

Neat Examples  (1)

Visualize a function with a boundary of analyticity:

Wolfram Research (1988), EllipticTheta, Wolfram Language function, https://reference.wolfram.com/language/ref/EllipticTheta.html (updated 2017).


Wolfram Research (1988), EllipticTheta, Wolfram Language function, https://reference.wolfram.com/language/ref/EllipticTheta.html (updated 2017).


@misc{reference.wolfram_2020_elliptictheta, author="Wolfram Research", title="{EllipticTheta}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/EllipticTheta.html}", note=[Accessed: 15-April-2021 ]}


@online{reference.wolfram_2020_elliptictheta, organization={Wolfram Research}, title={EllipticTheta}, year={2017}, url={https://reference.wolfram.com/language/ref/EllipticTheta.html}, note=[Accessed: 15-April-2021 ]}


Wolfram Language. 1988. "EllipticTheta." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/EllipticTheta.html.


Wolfram Language. (1988). EllipticTheta. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EllipticTheta.html