InertForm - Maple Programming Help

Home : Support : Online Help : Programming : Evaluation : Preventing Evaluation : InertForm Package : InertForm/ToMathContainer

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.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6756723,"math_prob":0.9759144,"size":1696,"snap":"2021-04-2021-17","text_gpt3_token_len":409,"char_repetition_ratio":0.18735224,"word_repetition_ratio":0.0,"special_character_ratio":0.19221698,"punctuation_ratio":0.16423358,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98042774,"pos_list":[0,1,2,3,4,5,6],"im_url_duplicate_count":[null,null,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-22T19:41:29Z\",\"WARC-Record-ID\":\"<urn:uuid:9bb6db9d-076c-40de-91bc-8d439a1e35d1>\",\"Content-Length\":\"172453\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:817b2212-76a7-4f86-978f-2666a1d3bf42>\",\"WARC-Concurrent-To\":\"<urn:uuid:a966b1e0-57c1-4178-b9bd-73c221eefe24>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://www.maplesoft.com/support/help/Maple/view.aspx?path=InertForm%2FToMathContainer\",\"WARC-Payload-Digest\":\"sha1:Z6MCE3JOHZFWAVXI2HSA7AYUUJJABIQD\",\"WARC-Block-Digest\":\"sha1:XD3IDFBELROQAQEHTJFFDY3WC7N532TC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703531335.42_warc_CC-MAIN-20210122175527-20210122205527-00211.warc.gz\"}"}