Math: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= Basics = | == Basics == | ||
To render any math equation, the math equation must be between <syntaxhighlight lang="html5" inline><math></math></syntaxhighlight> i.e., <syntaxhighlight lang="html5" inline><math>f(x)=x^2</math></syntaxhighlight> gives <math>f(x)=x^2</math>. | To render any math equation, the math equation must be between <syntaxhighlight lang="html5" inline><math></math></syntaxhighlight> i.e., <syntaxhighlight lang="html5" inline><math>f(x)=x^2</math></syntaxhighlight> gives <math>f(x)=x^2</math>. | ||
= Command math commands == | |||
Superscript: <syntaxhighlight lang="html5" inline><math>x^{superscript}</math></syntaxhighlight> | |||
<math> | |||
\begin{align} | |||
\int_{0}^{1}\left(3+x\sqrt{x}\right)dx &= \int_{0}^{1}\left(3+x^{1}{x}^{\frac{1}{2}}\right)dx = \int_{0}^{1}\left(3+x^{1+\frac{1}{2}}\right)dx = \int_{0}^{1}\left(3+x^{\frac{3}{2}}\right)dx \\[2ex] | |||
&= 3x+\frac{x^{\frac{3}{2}+1}}{\frac{3}{2}+1}\bigg|_{0}^{1} = 3x+\frac{x^{\tfrac{5}{2}}}{\frac{5}{2}}\bigg|_{0}^{1} = 3x+\frac{2x^{\frac{5}{2}}}{5}\bigg|_{0}^{1} \\[2ex] | |||
&= \left[3(1)+\frac{2(1)^{5/2}}{5}\right]-\left[3(0)+\frac{2(0)^{5/2}}{5}\right] \\[2ex] | |||
&= 3+\frac{2}{5} = \frac{15}{5}+\frac{2}{5} = \frac{17}{5} | |||
\end{align} | |||
</math> | |||
<code>123<math></math></code> | <code>123<math></math></code> |