FromMathContainer - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


InertForm

  

FromMathContainer

  

gets an unsimplified inert-form math expression from a MathContainer component

 

Calling Sequence

Parameters

Description

Package Usage

Examples

Compatibility

Calling Sequence

FromMathContainer( container_name )

Parameters

container_name

-

string

Description

• 

The FromMathContainer command extracts the contents of a MathContainer component and returns an unsimplified inert-form expression.

• 

By extracting to an inert form you can avoid the automatic simplification and evaluation that is normally done on mathematical expressions.  For example, extracting "1+1" using DocumentTools:-Do or DocumentTools:-GetProperty will give you the answer 2, because Maple automatically simplifies expressions containing the addition of integer constants.  Using this command, the same "1+1" will give %+(1,1), where the terms are all present in a form that can be easily manipulated in a predictable way.  

• 

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.

• 

Instead of passing the name of the Math Container as the first argument, this command will also accept a Typesetting structure, similar to one fetched as the "expression" property of a MathContainer, and parse it to an inert form.

Package Usage

• 

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

Examples

withDocumentTools:withDocumentTools:-Layout:withDocumentTools:-Components:

InsertContentWorksheetGroupTextfieldMathContainer`%+`1,1,identity=MC1

(1)

InertForm:-FromMathContainerMC1

1+1

(2)

Compatibility

• 

The InertForm[FromMathContainer] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

DocumentTools

InertForm:-Parse

MathContainer

ProgrammingGuide/MapleExpressions