prev  ( testsuite > Presentation > GeneralLayout > msqrt-mroot > mrootSscriptlevel4  )  next

Alternatives: (mml file)  (full) (simple) (plain) (form) (slideshow)
File:Presentation/GeneralLayout/msqrt-mroot/mrootSscriptlevel4
CVS-ID:
Author:Robert Miner and Jeff Schaefer, Geometry Technologies
Description:This example tests that the <mroot> increments the scriptlevel by 2 and sets displaystyle to false in the index.

Sample Rendering:

Created by: webeq

Your browser's rendering:

x - x 3 x 3 + x - 3 x 3 + x - 3 x 3 + x 3

Source Code:

<math xmlns="http://www.w3.org/1998/Math/MathML"> 
  <mstyle displaystyle="true"> 
    <mroot> 
      <mrow> 
        <mi>x</mi> 
        <mo>-</mo> 
        <mfrac> 
          <mi>x</mi> 
          <mn>3</mn> 
        </mfrac> 
      </mrow> 
      <mfrac> 
        <mi>x</mi> 
        <mn>3</mn> 
      </mfrac> 
    </mroot> 
  </mstyle> 
  <mo>+</mo> 
  <mstyle scriptlevel="2"> 
    <mroot> 
      <mrow> 
        <mi>x</mi> 
        <mo>-</mo> 
        <mn>3</mn> 
      </mrow> 
      <mfrac> 
        <mi>x</mi> 
        <mn>3</mn> 
      </mfrac> 
    </mroot> 
  </mstyle> 
  <mo>+</mo> 
  <mroot> 
    <mrow> 
      <mi>x</mi> 
      <mo>-</mo> 
      <mn>3</mn> 
    </mrow> 
    <mfrac> 
      <mi>x</mi> 
      <mn>3</mn> 
    </mfrac> 
  </mroot> 
  <mo>+</mo> 
  <mstyle scriptlevel="2" displaystyle="true"> 
    <mfrac> 
      <mi>x</mi> 
      <mn>3</mn> 
    </mfrac> 
  </mstyle> 
</math>