Beautiful Math and Code

Inline Math Einstein’s famous equation: $E = mc^2$ Display Math The Gaussian integral: $$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$Maxwell’s equations in differential form: $$ \nabla \cdot \mathbf{E} = \frac{\rho}{\varepsilon_0} $$Code Snippet 1 2 3 4 5 6 7 8 def fibonacci(n: int) -> int: """Return the nth Fibonacci number.""" if n <= 1: return n a, b = 0, 1 for _ in range(2, n + 1): a, b = b, a + b return b

January 1, 2024 · 1 min · Dinh Minh Hai