MathMLForm
MathMLForm[expr]
prints as a MathML form of expr.
Details
- MathMLForm gives presentation MathML, although its output can normally be interpreted by the Wolfram Language.
- MathMLForm[expr] gives MathML for the TraditionalForm of expr. »
- MathMLForm[StandardForm[expr]] gives MathML for the StandardForm of expr. »
- When an input evaluates to MathMLForm[expr], MathMLForm does not appear in the output. »
- MathMLForm gives special characters using HTML aliases.
Examples
open allclose allScope (7)
Generalizations & Extensions (1)
MathMLForm gives MathML for the TraditionalForm expression:
Obtain MathML for the expression in StandardForm:
Properties & Relations (5)
Convert an expression to MathML:
Use ToExpression to convert MathML back to Wolfram Language syntax:
Use ToExpression to convert from any MathML to the Wolfram Language:
Use Export to generate a MathML document, including semantic markup:
Add formatting via Format:
When an input evaluates to MathMLForm[expr], MathMLForm does not appear in the output:
Out is assigned the value x2, not MathMLForm[x^2]:
Possible Issues (1)
Even when an output omits MathMLForm from the top level, it is not stripped from subexpressions:
The output does not have MathMLForm in it:
However, the variable e does have MathMLForm in it, which may affect subsequent evaluations:
The product is not evaluated due to the intervening MathMLForm:
Assign variables first and then apply MathMLForm to the result to maintain computability:
Text
Wolfram Research (2000), MathMLForm, Wolfram Language function, https://reference.wolfram.com/language/ref/MathMLForm.html.
CMS
Wolfram Language. 2000. "MathMLForm." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MathMLForm.html.
APA
Wolfram Language. (2000). MathMLForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MathMLForm.html