XML technologies / MathML / Presentation markup / General layout elements / Roots and radicals

(Excerpt from "The MathML Handbook" by Pavi Sandhu)

The msqrt element is used for representing square roots, as shown here:

Presentation markup: equation 16

<msqrt>
  <mn>2</mn>
</msqrt>

An msqrt element accepts any number of arguments. However, if the number of arguments is other than 1, they are interpreted as lying within an inferred mrow.

More generally, roots are represented using the mroot element. Each mroot element must contain exactly two arguments with the following syntax:

<mroot> base index </mroot>

Here is an example:

Presentation markup: equation 17

<mroot>
  <mi>x</mi>
  <mn>3</mn>
</mroot>

An mroot element increments scriptlevel by 2 and sets displaystyle to false within index but leaves both attributes unchanged within base. This causes the index of the radical to be displayed in a smaller size, as required by convention. For more details about the displaystyle and scriptlevel attributes, see the description of the mstyle element under Applying styles.

   

 

 

 

 

back to top