Testing LaTeX Math Rendering
January 01, 2024
This post demonstrates the math rendering capabilities of the blog using KaTeX.
Inline Math
The famous mass-energy equivalence formula shows the relationship between energy and mass. We can also write inline expressions like .
Display Math
The Cauchy-Schwarz inequality:
Euler’s identity, often considered one of the most beautiful equations:
The definition of the Gaussian distribution:
Matrices and Vectors
A simple rotation matrix in 2D:
Physics Equations
Newton’s second law of motion:
The Schrodinger equation:
Code Example
Here’s a simple Python function:
def fibonacci(n):
if n <= 1:
return n
return fibonacci(n-1) + fibonacci(n-2)
This demonstrates that code blocks work alongside math rendering.