Files
trade-t1/equation-numbering.ipynb

1.4 KiB

Equation Numbering Test

Inline math: $a^2 + b^2 = c^2$.

Displayed equations below should be numbered automatically by the Gitea renderer.

$$ \int_0^1 x^2 \, dx = \frac{1}{3} $$

$$ f(x) = x^2 + 1 $$

In [1]:
def integral_x2(a=0.0, b=1.0):\n    return (b ** 3 - a ** 3) / 3.0\n\nvalues = [x * x + 1 for x in [0.0, 0.25, 0.5, 0.75, 1.0]]\nprint(f'integral x^2 on [0, 1] = {integral_x2():.6f}')\nprint(f'sample values: {values}')\n
integral x^2 on [0, 1] = 0.333333\nsample values: [1.0, 1.0625, 1.25, 1.5625, 2.0]\n