Use the power of WolframAlpha inside your LaTeX document
i.e.
``tex`
\[
\begin{pmatrix} 2 & 2 \\ 5 & 4 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} =
\]
\\
\[
\sum_{n=1}^n n =
\]`
generates: tex`
\[
\begin{pmatrix} 2 & 2 \\ 5 & 4 \end{pmatrix} \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix} = \begin{pmatrix}2 & 0 \\ 5 & 0\end{pmatrix}
\]
\\
\[
\sum_{n=1}^n n = \frac{n}{2}+\frac{n^2}{2}
\]
> Generate tables
> Table[{x,\sin(x),\cos(x),x^2,x^3},{x,-2\pi,2\pi,\pi/2}] =`
> !table
This extension uses the WolframAlpha API.