曹楊路停留所

創造は始まりの風を連れ~

Using the LaTex function in Hatenablog

Open the Hatenablog editor with Markdown mode, Let's wrote a normal distribution in general form. The Markdown code which required you do is in following template:

[tex: put a function in LaTex grammar]

Thus, the LaTex code for normal distribution would looks like this:

[tex: X \sim \mathcal{N}(\mu,\,\sigma^{2})\,.]

Pratical application:  X \sim \mathcal{N}(\mu,\,\sigma^{2})\,.

Gaussian Nomral Distribution:

[tex:   f(x) = \frac{1}{\sigma\sqrt{2\pi}} 
  \exp\left( -\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{\!2}\,\right).]

   f(x) = \frac{1}{\sigma\sqrt{2\pi}}
  \exp\left( -\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^{!2}\,\right). End.

Besides the y=ax+b form, you can even wrote a Matrix of Linear System in Hatenablog with Markdown mode.

[tex: \begin{pmatrix}
a&b\\
c&d
\end{pmatrix}
]

Do not forgot doing it with pre function, without it it's will occur the displaying error during the reading section.

Here is the example code of an ideal M x N matrix:

[tex: A_{m,n} = 
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots  & \vdots  & \ddots & \vdots  \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n} 
\end{pmatrix}
]

Opreate it:

 A_{m,n} = 
\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots  & \vdots  & \ddots & \vdots  \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n} 
\end{pmatrix}