MathML

MathML

Top  Previous  Next

All mathematical expressions in Mechanical Expressions are written in MathML, so you can copy and paste directly to or from any other MathML program.

Usually the standard Edit / Copy or Ctrl-C command should work. If this doesn't give you the desired result, try the Edit / Copy As command. Select from the submenu of choices appropriate to your application.

If you copy an expression that uses Intermediate Variables, the algebra system will create a function from the pasted expression.

To Paste math into Mechanical Expressions it must be Content MathML.

  • Maple creates Content MathML by default.
  • To create Content MathML in Mathematica v6.0, execute the following commands:

       SetOptions[XML`MathML`ExpressionToMathML, "NamespacePrefixes" > {}, "Formats" > {"ContentMathML"}]

       SetOptions[XML`MathML`BoxesToMathML, "NamespacePrefixes" > {}, "Formats" > {"ContentMathML"}]

       SetOptions[Export, ConversionOptions > {"NamespacePrefixes" > {}, "Formats" > {"ContentMathML"}}]

       SetOptions[ExportString, ConversionOptions > {"NamespacePrefixes" > {}, "Formats" > {"ContentMathML"}}]

  • To create Content MathML in Mathematica v7.0 or higher, execute the following commands

       ExportString[expression, "MathML", "Presentation"-> False, "Content" -> True]

       Then copy the content MathML representation (the exported mathematical expression) as Plain Text and paste it into Mechanical Expressions.