next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: mathML

mathML -- convert to MathML format

Synopsis

Description

i1 : R = ZZ[x,y];
i2 : mathML (x+2*y-1)^2

o2 = <mrow><msup><mi>x</mi><mn>2</mn></msup>
     <mo>+</mo><mrow><mn>4</mn><mo></mo><mi>x</mi><mo>*</mo><mi>y</mi></mrow>
     <mo>+</mo><mrow><mn>4</mn><mo></mo><msup><mi>y</mi><mn>2</mn></msup></mrow>
     <mo>-</mo><mrow><mn>2</mn><mo></mo><mi>x</mi></mrow>
     <mo>-</mo><mrow><mn>4</mn><mo></mo><mi>y</mi></mrow>
     <mo>+</mo><mn>1</mn>
     </mrow>
i3 : mathML matrix {{x,y},{x^2+2,0}}

o3 = <mrow><mo>(</mo><mtable align="baseline1">
     <mtr><mtd><mi>x</mi></mtd>
     <mtd><mi>y</mi></mtd>
     </mtr>
     <mtr><mtd><mrow><msup><mi>x</mi><mn>2</mn></msup>
     <mo>+</mo><mn>2</mn>
     </mrow>
     </mtd>
     <mtd><mn>0</mn></mtd>
     </mtr>
     </mtable>
     <mo>)</mo></mrow>

See also

Ways to use mathML :

For the programmer

The object mathML is a method function with a single argument.