prints as a MathML form of expr.



open allclose all

Basic Examples  (2)

A typeset expression:

A special character:

Scope  (7)

Subscripts and superscripts:

Overscripts and underscripts:

List structures:

A matrix:

Logic operations:

A definite sum:

A special function:

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:

Wolfram Research (2000), MathMLForm, Wolfram Language function,


Wolfram Research (2000), MathMLForm, Wolfram Language function,


Wolfram Language. 2000. "MathMLForm." Wolfram Language & System Documentation Center. Wolfram Research.


Wolfram Language. (2000). MathMLForm. Wolfram Language & System Documentation Center. Retrieved from


@misc{reference.wolfram_2024_mathmlform, author="Wolfram Research", title="{MathMLForm}", year="2000", howpublished="\url{}", note=[Accessed: 21-June-2024 ]}


@online{reference.wolfram_2024_mathmlform, organization={Wolfram Research}, title={MathMLForm}, year={2000}, url={}, note=[Accessed: 21-June-2024 ]}