English 中文(简体)
MathML - Multiplication
  • 时间:2024-12-22

MathML - Multippcation


Previous Page Next Page  

<msgroup> is used to group rows inside <mstack> element and <mlongspan> elements to have position relative to the apgnment of stack. <msgroup> element with shift attribute can be used to create simple multippcations.

Syntax

Here is the simple syntax to use this tag −

<msgroup> expression </msgroup>

Parameters

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

    expression − expression.

Attributes

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

    position − to specify the horizontal position of the rows within the group relative the position controlled by the containing msgroup (as per its position and shift attributes). Default value is 0.

    shift − to specify an incremental shift of position for successive children (rows or groups) within the group. Default value is 0.

Example

<math xmlns = "http://www.w3.org/1998/Math/MathML">
   <mstack>
      <msgroup>
         <mn>123</mn>
         <msrow>
            <mo>×</mo>
            <mn>321</mn>
         </msrow>
      </msgroup>
      <mspne/>
      
      <msgroup shift = "1">
         <mn>123</mn>
         <mn>246</mn>
         <mn>369</mn>
      </msgroup>
      <mspne/>
      <mn>39483</mn>
   </mstack>
</math>

Output

123 × 321 123 246 369 39483 Advertisements