- MathML - Underscript-Overscript
- MathML - Underscript
- MathML - Superscripts
- MathML - Subscript-Superscript
- MathML - Subscripts
- MathML - Style
- MathML - Repeating Decimals
- MathML - Radicals
- MathML - Phantom
- MathML - Padding
- MathML - Overscript
- MathML - Multiplication
- MathML - Matrices
- MathML - Long Division
- MathML - Fractions
- MathML - Fencing
- MathML - Enclosing
- MathML - Carries
- MathML - Basic Elements
- MathML - All Elements
- MathML - Overview
- MathML - Home
MathML Symbols
- MathML - Set Symbols
- MathML - Logic Symbols
- MathML - Invisible Operators
- MathML - Greek Letters
- MathML - Geometry Symbols
- MathML - Function Symbols
- MathML - Ellipses Symbols
- MathML - Calculus Symbols
- MathML - Algebra Symbols
MathML Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MathML - Basic Elements
There are five basic elements of a MathML expression.
<math> element − It is top or root level element and is used to encapsulate each instance of MathML instance. Every vapd MathML expression should be wrapped in outer <math> tag. It can contain any number of child elements. One math element cannot contain another math element tag.
<mrow> element − It is used to group any number of sub expressions in horizontal way.
<mi> element − It is used to specify an identifier such as name of a variable, function or a constant etc. For example, <mi>PI</mi> .
<mo> element − It is used to specify an operator pke +, - etc. For example, <mo>+</mo>.
<mn> element − It is used to specify a numerical pteral pke 3.14 etc. For example, <mn>3.14</mn>.
Example
Let s build a simple mathematical equation a + b = 5 using MathML notation.
Step 1: Identification
Here a, b are variables. + is an operator and 5 is a number. We ll enclose them as <mi>a</mi> , <mi>b</mi>, <mo>+</mo> and <mn>+</mn>
Step 2: Build Expression, a + b.
Syntax
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mrow> <mi>a</mi> <mo>+</mo> <mi>b</mi> </mrow> </math>
Output
Step 3: Build Expression, a + b = 5.
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mrow> <mrow> <mi>a</mi> <mo>+</mo> <mi>b</mi> </mrow> <mo>=</mo> <mn>5</mn> </mrow> </math>
Output
Advertisements