Usage
To enable mathjax, just add mathjax: true
in Front-matte like this:
1 | --- |
then you can write mathjax scripts in post
MathJax-Source-Code
1 | \begin{align} |
Render-Result
\begin{align}
\theta_0 & := \theta_0 - \alpha\frac{\partial}{\partial\theta_0}J(\theta_0,\theta_1) \\
& = \theta_0 - \alpha\frac{\partial}{\partial\theta_0} \frac{1}{2m} \sum_{i=1}^{m}(h_\theta(x^{(i)}) - y^{(i)})^2 \\
& = \theta_0 - (\alpha \frac{1}{2m} * 2 * \sum_{i=1}^{m}(h_\theta(x^{(i)}) - y^{(i)})) * \frac{\partial}{\partial\theta_0}(h_\theta(x^{(i)}) - y^{(i)}) \\
& = \theta_0 - \frac{\alpha}{m} * \sum_{i=1}^{m}(h_\theta(x^{(i)}) - y^{(i)})
\end{align}