This post tests two new rendering capabilities: LaTeX math notation via KaTeX, and Cartesian graphs via a custom SVG renderer.
Inline math
The quadratic formula is x=2a−b±b2−4ac, and Euler's identity is eiπ+1=0.
You can also reference variables inline — e.g., given a matrix A∈Rm×n, its rank satisfies rank(A)≤min(m,n).
Display math (block equations)
The general form of a Taylor series centered at a:
f(x)=n=0∑∞n!f(n)(a)(x−a)n
The Gaussian integral:
∫−∞∞e−x2dx=π
A system of linear equations Ax=b written out:
a11a21a31a12a22a32a13a23a33x1x2x3=b1b2b3
Cartesian graphs
A parabola — y=x2
Comparing sin(x) and cos(x)
Blue is sin(x), dashed red is cos(x).
Parametric curve — unit circle
The unit circle is defined parametrically as x(t)=cos(t), y(t)=sin(t) for t∈[0,2π]:
Logistic function — f(x)=1+e−x1
Mixed content
Gradient descent updates a parameter θ at each step:
θt+1=θt−α∇θL(θt)
where α is the learning rate and L is the loss function. Below is a simple loss landscape L(θ)=θ2+2: