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 next >>

 

 

 


 

Copyright © CHARLES RIVER MEDIA, INC., Massachusetts (USA) 2003
Printing of the online version is permitted exclusively for private use. Otherwise this chapter from the book "The MathML Handbook" is subject to the same provisions as those applicable for the hardcover edition: The work including all its components is protected by copyright. All rights reserved, including reproduction, translation, microfilming as well as storage and processing in electronic systems.


CHARLES RIVER MEDIA, INC., 20 Downer Avenue, Suite 3, Hingham, Massachusetts 02043, United States of America