Math: Difference between revisions

From Burton Tech. Points Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
=== Superscript & Subscript ===
=== Superscript & Subscript ===


Superscript: <syntaxhighlight lang="html5" inline><math>x^{5+y}</math></syntaxhighlight> rendered: <math>x^{5+y}</math><br>
Superscript: <syntaxhighlight lang="html5" inline><math>x^{5+y}</math></syntaxhighlight> gives <math>x^{5+y}</math><br>
Subscript: <syntaxhighlight lang="html5" inline><math>x_{5+t}</math></syntaxhighlight> rendered: <math>x_{5+t}</math><br>
Subscript: <syntaxhighlight lang="html5" inline><math>x_{5+t}</math></syntaxhighlight> gives <math>x_{5+t}</math><br>
Both at the same time: <syntaxhighlight lang="html5" inline><math>x_{5+t}^{5+y}</math></syntaxhighlight> rendered: <math>x_{5+t}^{5+y}</math>  
Both at the same time: <syntaxhighlight lang="html5" inline><math>x_{5+t}^{5+y}</math></syntaxhighlight> gives <math>x_{5+t}^{5+y}</math>
 
=== Fractions and radicals ===
 
Fractions: <syntaxhighlight lang="html5" inline><math>\frac{numerator}{denominator}</math></syntaxhighlight> gives <math>\frac{numerator}{denominator}</math><br>


----
----

Revision as of 15:24, 25 August 2022

Basics[edit]

To render any math equation, the math equation must be between <math></math> i.e., <math>f(x)=x^2</math> gives .

Common math commands[edit]

Superscript & Subscript[edit]

Superscript: <math>x^{5+y}</math> gives
Subscript: <math>x_{5+t}</math> gives
Both at the same time: <math>x_{5+t}^{5+y}</math> gives

Fractions and radicals[edit]

Fractions: <math>\frac{numerator}{denominator}</math> gives








123