 ToMathContainer - Maple Help

InertForm

 ToMathContainer
 puts an inert-form math expression into a MathContainer component Calling Sequence ToMathContainer( expr, container_name ) ToMathContainer( expr, container_name, inert=truefalse ) Parameters

 expr - expression container_name - string Description

 • The ToMathContainer command inserts the given expression into a MathContainer component.
 • The expression is pre-formatted by calling InertForm:-Typeset. By default, inert substructures are displayed in gray. To show the expression so that it looks like an equivalent non-inert expression, use the option inert=false.
 • For more details about the nature of inert form, see InertForm:-Parse.  For information on automatic simplification, refer to the Maple Expressions chapter of the Maple Programming Guide. Package Usage

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

 > $\mathrm{Grading}:-\mathrm{Quiz}\left("Simplify the following expression:",1,\mathrm{%*}\left(8,\mathrm{%/}\left(\mathrm{%sqrt}\left(4\right),\mathrm{%^}\left(4,2\right)\right)\right),\mathrm{inertform}=\mathrm{true}\right)$

 Simplify the following expression:  =  > $\mathrm{InertForm}:-\mathrm{ToMathContainer}\left(\mathrm{%*}\left(8,\mathrm{%/}\left(2,16\right)\right),"MathContainerANS",'\mathrm{inert}'=\mathrm{false}\right)$
 > Compatibility

 • The InertForm[ToMathContainer] command was introduced in Maple 2017.