CovnertToString - Maple Help

InertForm

 ConvertToString
 convert an inert-form structure to a string that uses standard math notation

 Calling Sequence ConvertToString( expr )

Parameters

 expr - expression

Description

 • The ConvertToString command accepts an inert-form structure and returns a sprintf or lprint text representation of that string with inert operators replaced with standard operators.

Package Usage

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

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{lprint}\left(\mathrm{ex}\right)$
 (1 %+ 2) %/ 6
 > $\mathrm{ConvertToString}\left(\mathrm{ex}\right)$
 ${"\left(1+2\right)/6"}$ (2)

Compatibility

 • The InertForm[ConvertToString] command was introduced in Maple 2021.