https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#math
Inline: a2 + b2 = c2
https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#math
Block:
(a + b)2 = a2 + 2ab + b2
(a − b)2 = a2 − 2ab + b2
Another block:
https://www.sphinx-doc.org/en/master/usage/restructuredtext/domains.html#the-math-domain
With label (since Sphinx 1.8):
eiπ + 1 = 0
Euler's identity, equation euler
, was elected one of the most beautiful mathematical formulas.