====== Formulas ====== The functionality is provided by [[doku>plugin:mathjax|MathJax Plugin]]. Use [[https://www.codecogs.com/latex/eqneditor.php|LaTeX Equation maker]] if you don't know how to write Latex codes. ===== Inline formulas ===== Simply place LaTex codes in ''%% ...... %%'' or ''%%\%%( ...... %%\%%)'' to render inline formulas. Use [[https://www.codecogs.com/latex/eqneditor.php|LaTeX Equation maker]] if you don't know how to write Latex codes. For example, \(E=MC^2\), equation in German-born physicist Albert Einstein’s theory of special relativity ...... or E=MC^2, equation in German-born physicist Albert Einstein’s theory of special relativity ...... The above will be rendered as: E=MC^2, equation in German-born physicist Albert Einstein’s theory of special relativity ...... ===== Display Math ===== Wrap LaTex codes in ''%% ...... %%'' or ''%%\%%[ ...... %%\%%]'' to display math formulas on its own line: Use [[https://www.codecogs.com/latex/eqneditor.php|LaTeX Equation maker]] if you don't know how to write Latex codes. \[ \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] \] or \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] The above will be rendered as: \sin A \cos B = \frac{1}{2}\left[ \sin(A-B)+\sin(A+B) \right] A wide range of math environments will work as well: \begin{align*} e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ & = \sum_{n\geq 0} \frac{x^n}{n!} \end{align*} \begin{align*} e^x & = 1 + x + \frac{x^2}{2} + \frac{x^3}{6} + \cdots \\ & = \sum_{n\geq 0} \frac{x^n}{n!} \end{align*}