mathml - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MapleTA[Builtin]

  

mathml

  

format an expression in MathML

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

mathml(f)

mathml(f, nosimplify)

Parameters

f

-

string or expression

nosimplify

-

string, identical(nosimplify)

Description

• 

The mathml command returns a string consisting of the formula f typeset in MathML.

• 

Note: The MathML is generated as a string of tags. It is not rendered. Use MathML:-Import to convert the string back to a displayable expression.

• 

By default, mathml(f) automatically simplifies the formula. To prevent auto-simplification, use the nosimplify option. The nosimplify option only makes sense when f is a command string. Otherwise simplifications have already been performed on f and cannot be prevented.

Examples

MapleTA:-Builtin:-mathmlx^2

<math xmlns='http://www.w3.org/1998/Math/MathML'><semantics><mrow xref='id3'><msup><mi xref='id1'>x</mi><mn xref='id2'>2</mn></msup></mrow><annotation-xml encoding='MathML-Content'><apply id='id3'><power/><ci id='id1'>x</ci><cn id='id2' type='integer'>2</cn></apply></annotation-xml><annotation encoding='Maple'>x^2</annotation></semantics></math>

(1)

MapleTA:-Builtin:-mathmlx^2 + 4/8&comma;nosimplify

<math xmlns='http://www.w3.org/1998/Math/MathML'><mrow><msup><mrow><mi>x</mi></mrow><mn>2</mn></msup><mo>&plus;</mo><mfrac><mrow><mn>4</mn></mrow><mrow><mn>8</mn></mrow></mfrac></mrow></math>

(2)

Compatibility

• 

The MapleTA[Builtin][mathml] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

InertForm

MapleTA

MathML