Math

Here shows the results of math rendering.

Inline math

Here is an equation: :math:`(a + b)^2 = a^2 + 2ab + b^2`.

Here is an equation: \((a + b)^2 = a^2 + 2ab + b^2\).

Block math

.. math::
    :label: block math label

    (a + b)^2 = a^2 + 2ab + b^2

    (a - b)^2 = a^2 - 2ab + b^2
(1)\[ \begin{align}\begin{aligned}(a + b)^2 = a^2 + 2ab + b^2\\(a - b)^2 = a^2 - 2ab + b^2\end{aligned}\end{align} \]
.. math::
    :nowrap:

    \begin{eqnarray}
        y    & = & ax^2 + bx + c \\
        f(x) & = & x^2 + 2xy + y^2
    \end{eqnarray}
\begin{eqnarray} y & = & ax^2 + bx + c \\ f(x) & = & x^2 + 2xy + y^2 \end{eqnarray}