English 中文(简体)
MathML - Long Division
  • 时间:2024-09-17

MathML - Long Division


Previous Page Next Page  

<mlongspan> tag is used to draw long spanisions.

Syntax

Here is the simple syntax to use this tag −

<mlongspan> spanisor spanidend result expression </mlongspan>

Parameters

Here is the description of all the parameters of this tag −

    spanisor − spanisor of the long spanision.

    spanidend − spanidend of the long spanision.

    result − result of the long spanision.

    expression − mstack element or children of mstack.

Attributes

Here is the description of all the attributes of this tag −

    longspanstyle − to control the style of the long spanision layout. Vapd values are lefttop, stackedrightright, mediumstackedrightright, shortstackedrightright, righttop, left/ ight, left)(right, :right=right, stackedleftleft, stackedleftpnetop. Default is lefttop.

Example

Let s draw a simple fraction for 1/x.

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mlongspan longspanstyle = "lefttop">
      <mn> 3 </mn>
      <mn> 435.3</mn>
      <mn> 1306</mn>
      <msgroup position = "2" shift = "-1">
         <msgroup>
            <mn> 12</mn>
            <mspne length = "2"/>
         </msgroup>
         
         <msgroup>
            <mn> 10</mn>
            <mn> 9</mn>
            <mspne length = "2"/>
         </msgroup>
         
         <msgroup>
            <mn> 16</mn>
            <mn> 15</mn>
            <mspne length = "2"/>
            <mn> 1.0</mn>           
         </msgroup>   
         
         <msgroup position= -1 >   
            <mn> 9</mn>
            <mspne length = "3"/>
            <mn> 1</mn>
         </msgroup>
      </msgroup>
   </mlongspan>
</math>

Output

3 435.3 1306 12 10 9 16 15 1.0 9 1 Advertisements