ToMathML - Maple Help

InertForm

 ToMathML
 convert an inert-form structure into a MathML string

 Calling Sequence ToMathML( expr )

Parameters

 expr - expression

Description

 • The ToMathML command accepts an inert-form structure and returns a MathML string suitable for display in a browser or other tool that accepts presentation MathML.  The encoded result will render the expression in standard math notation.

Package Usage

 • This function is part of the InertForm package, so it can be used in the short form ToMathML(..) only after executing the command with(InertForm). However, it can always be accessed through the long form of the command by using InertForm[ToMathML](..).

Examples

 > $\mathrm{with}\left(\mathrm{InertForm}\right):$
 > $\mathrm{ex}≔\mathrm{Parse}\left("\left(1+2\right)/6"\right)$
 ${\mathrm{ex}}{≔}{\mathrm{Typesetting}}{:-}{\mathrm{_Hold}}{}\left(\left[{\mathrm{%/}}{}\left({\mathrm{%+}}{}\left({1}{,}{2}\right){,}{6}\right)\right]\right)$ (1)
 > $\mathrm{ToMathML}\left(\mathrm{ex}\right)$
 ${"1+26\left[/itex\right]"}$ (2)

Compatibility

 • The InertForm[ToMathML] command was introduced in Maple 18.