Saturday, March 4, 2017

MathML - Repeating Decimals

Decimal numbers having digit(s) that repeat(s) infinitely such as 1/3 (.3333...) are represented by putting a horizontal line over or below the digits that repeat. <mstack> , <msrow>, and <msline> elements can be used to create decimal numbers with repeated digits as shown below.

Example

1
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstack stackalign="right">
   <msline length="1"/>
   <mn> 0.3333 </mn>
</mstack>

Output

Unknown node type: mstack
2
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstack stackalign="right">
   <msline length="6"/>
   <mn> 0.142857 </mn>
</mstack>

Output

Unknown node type: mstack
3
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mstack stackalign="right">   
   <mn> 0.142857 </mn>
   <msline length="6"/>
</mstack>

Output

Unknown node type: mstack

No comments:

Post a Comment