MathML Radicals
- MathML, two elements are used to specify radicals. two elements are:
- <msqrt> element
- <mroot> element
- <msqrt> - This element creates square root, taking the base as its only argument
- <mroot> - This element is used to create an indexed root. It have base and index as argument.
![MathML Radicals](http://cdn.wikitechy.com/tutorial/mathml/mathml-radicals.png)
MathML Radicals
Example
- The following equation on the web page:
![redical formula](http://cdn.wikitechy.com/tutorial/mathml/radical-formula.png)
Equivalent MathML Code
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'>
<msqrt>
<mn>4</mn>
</msqrt>
<mo>×</mo>
<mroot>
<mn>8</mn>
<mn>3</mn>
</mroot>
<mo>=</mo>
<mn>4</mn>
</math>
Supporting Browsers
Element | ![]() |
![]() |
![]() |
![]() |
![]() |
---|---|---|---|---|---|
<msqrt> | No | No | Yes | No | Only Basic Support |