MapleTA[Builtin] - Maple Programming Help

Home : Support : Online Help : Connectivity : Maple T.A. : MapleTA Package : Builtin : MapleTA/Builtin/mathml

MapleTA[Builtin]

 mathml
 format an expression in MathML

 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

 > $\mathrm{MapleTA}:-\mathrm{Builtin}:-\mathrm{mathml}\left("x^2"\right)$
 ${"x2x2x^2\left[/itex\right]"}$ (1)
 > $\mathrm{MapleTA}:-\mathrm{Builtin}:-\mathrm{mathml}\left("x^2 + 4/8","nosimplify"\right)$
 ${"x2+48\left[/itex\right]"}$ (2)

Compatibility

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