Formats/MathML - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Formats/MathML

MathML (.mml) Math Format

MathML file format

 

Description

Notes

Examples

References

Description

• 

MathML (Mathematics Markup Language) is an XML-based standard for encoding and communicating structured mathematical information.

• 

The commands in the MathML package support the import and export of both content and presentation MathML.

• 

The Import and Export commands can be used for import and export of MathML files.

Notes

• 

Content-Type: application/mathml+xml

Examples

Import a MathML expression from a file

Importexample/binomial.mml,base=datadir

x+yn=k=0nnkxkynk

(1)

Export an expression to a MathML string

MathML:-Exportsqrt2sinx21

<math xmlns='http://www.w3.org/1998/Math/MathML'><semantics><mrow xref='id10'><msqrt><mfenced><mrow xref='id9'><mrow xref='id7'><mn xref='id1'>2</mn><mo>&InvisibleTimes;</mo><mrow xref='id6'><msup><mi>sin</mi><mn xref='id5'>2</mn></msup><mo>&ApplyFunction;</mo><mi xref='id3'>x</mi></mrow></mrow><mo>-</mo><mn xref='id8'>1</mn></mrow></mfenced></msqrt></mrow><annotation-xml encoding='MathML-Content'><apply id='id10'><root/><apply id='id9'><plus/><apply id='id7'><times/><cn id='id1' type='integer'>2</cn><apply id='id6'><power/><apply id='id4'><sin id='id2'/><ci id='id3'>x</ci></apply><cn id='id5' type='integer'>2</cn></apply></apply><cn id='id8' type='integer'>-1</cn></apply></apply></annotation-xml><annotation encoding='Maple'>(2*sin(x)^2-1)^(1/2)</annotation></semantics></math>

(2)

References

  

MathML Specification, W3C.

See Also

Formats

MathML