Math: Difference between revisions
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
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>. | ||
= Common math commands == | == Common math commands === | ||
=== 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> rendered: <math>x^{5+y}</math><br> | ||
Revision as of 15:23, 25 August 2022
Basics
To render any math equation, the math equation must be between <math></math> i.e., <math>f(x)=x^2</math> gives Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle f(x)=x^2}
.
Common math commands =
Superscript & Subscript
Superscript: <math>x^{5+y}</math> rendered: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle x^{5+y}}
Subscript: <math>x_{5+t}</math> rendered: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle x_{5+t}}
Both at the same time: <math>x_{5+t}^{5+y}</math> rendered: Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle x_{5+t}^{5+y}}
123Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://en.wikipedia.org/api/rest_v1/":): {\displaystyle }