Macaulay2 » Documentation
Packages » Macaulay2Doc :: mathML
next | previous | forward | backward | up | index | toc

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>
     </mtr>
     <mtr><mtd><mi>y</mi></mtd>
     </mtr>
     </mtable>
     <mo>)</mo></mrow>

See also

For the programmer

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