This post shows how articles look: serif body text for long reading, inline formulas such as , and display equations that sit on their own line. Everything is ordinary LaTeX inside a Markdown file.
We want the value of
The function has no elementary antiderivative, so the usual trick is to square the integral and treat it as a double integral over the plane:
Switching to polar coordinates
With , and , the integrand only depends on :
So . Code blocks look like this:
import numpy as np
from scipy.integrate import quad
val, err = quad(lambda x: np.exp(-x**2), -np.inf, np.inf)
print(val, np.sqrt(np.pi)) # 1.7724538509 1.7724538509
Quotes and asides get a quiet left rule in the accent color.
Aligned equations work too:
Footnotes are supported as well.1
Formulas are rendered once at build time, so pages stay fast and work without JavaScript. ↩︎