StandardForm[expr]
prints as the standard Wolfram Language two-dimensional representation of expr.
StandardForm
StandardForm[expr]
prints as the standard Wolfram Language two-dimensional representation of expr.
Details
- StandardForm generates output that gives a unique and unambiguous representation of Wolfram Language expressions, suitable for use as input. »
- StandardForm incorporates many aspects of traditional mathematical notation.
- StandardForm is the standard format type used for both input and output of Wolfram Language expressions in notebooks.
- Graphics and Graphics3D are displayed graphically in StandardForm.
- StandardForm can be edited in the notebook front end.
- StandardForm uses special characters as well as ordinary keyboard characters.
- StandardForm is based on boxes.
- The notebook front end contains menu items for conversion to and from StandardForm.
- When an input evaluates to StandardForm[expr], StandardForm does not appear in the output. »
Examples
open all close allBasic Examples (2)
StandardForm is used by default for output:
x ^ 2 + x ^ (-1) + Pix ^ 2 + x ^ (-1) + Pi//StandardFormStandardForm for graphics:
Graphics[{Red, Disk[]}]Graphics3D[Sphere[]]Scope (7)
Basic Objects (2)
Integer, Rational, Real, and Complex numbers:
Map[StandardForm, {123, 1 / 23, 1.23, 1 + 23I}]Arbitrary-precision Real and Complex numbers:
StandardForm /@ N[{10 / 3, 10 / 3I}, 20]StandardForm /@ {I, Pi, E}Characters and strings of characters:
StandardForm /@ {"a", "α", "⊕"}Control characters for strings:
StandardForm["A first line
A second line"]Special Input Forms (3)
Different Power expressions:
StandardForm /@ {a ^ x, a^(1/(3)), Exp[x], x^-1}StandardForm /@ {Subscript[∂, x]y[x], Integrate[y[x], x], Sum[y[k], {k, 1, n}],
Element[x, Reals], (x∧y)∨z}StandardForm /@ {(| | | |
| - | - | - |
| a | b | c |
| d | e | f |), (| | |
| ------------------------------------------------------- | -------------------------------------------------------- |
| (\| \| \| \| - \| - \| \| a \| b \| \| c \| d \|) | (\| \| \| \| - \| - \| \| a \| b \| \| c \| d \|) |
| (\| \| \| \| - \| - \| \| a \| b \| \| c \| d \|) | (\| \| \| \| - \| - \| \| a \| b \| \| c \| d \|) |)}Special Output Forms (2)
Some objects use a special output representation:
StandardForm[ser = Series[Sin[x], {x, 0, 3}]]Compare with the underlying FullForm of the expression:
FullForm[ser]Some objects use an elided output representation:
StandardForm[i = Interpolation[{1, 2, 3, 1}]]StandardForm[s = SparseArray[{{1, 2} -> 1}, {5, 5}]]The elided parts are visible using InputForm:
InputForm[i]InputForm[s]Properties & Relations (5)
When an input evaluates to StandardForm[expr], StandardForm does not appear in the output:
StandardForm[x ^ 2]Out is assigned the value x2, not StandardForm[x^2]:
%//FullFormStandardForm is two-dimensional unambiguous formatting:
StandardForm[Exp[I x / n]]OutputForm approximates StandardForm using keyboard characters:
OutputForm[Exp[I x / n]]TraditionalForm is two-dimensional, but ambiguous formatting:
TraditionalForm[Exp[I x / n]]InputForm and FullForm provide one-dimensional formatting:
InputForm[Exp[I x / n]]FullForm[Exp[I x / n]]Use ToString to generate a string in StandardForm:
ToString[a ^ b, StandardForm]The string includes two-dimensional markup:
FullForm[%]Use ToExpression to convert back:
ToExpression[%]FullForm[%]Use ToBoxes to get the box representation of an expression in StandardForm:
ToBoxes[x ^ 2 + y ^ 3, StandardForm]Use ToExpression to convert back:
ToExpression[%]Add formatting via Format:
bin[x, y]//StandardFormFormat[bin[x_, y_], StandardForm] := MatrixForm[{{x}, {y}}]bin[x, y]//StandardFormPossible Issues (1)
Even when an output omits StandardForm from the top level, it is not stripped from subexpressions:
e = StandardForm[x ^ 2]The output does not have StandardForm in it:
%However, the variable e does have StandardForm in it, which may affect subsequent evaluations:
FullForm[e]The product is not evaluated due to the intervening StandardForm:
x * eAssign variables first and then apply StandardForm to the result to maintain computability:
(f = x ^ 2)//StandardFormx * fRelated Guides
Related Links
History
Introduced in 1996 (3.0) | Updated in 2007 (6.0)
Text
Wolfram Research (1996), StandardForm, Wolfram Language function, https://reference.wolfram.com/language/ref/StandardForm.html (updated 2007).
CMS
Wolfram Language. 1996. "StandardForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/StandardForm.html.
APA
Wolfram Language. (1996). StandardForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/StandardForm.html
BibTeX
@misc{reference.wolfram_2026_standardform, author="Wolfram Research", title="{StandardForm}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/StandardForm.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_standardform, organization={Wolfram Research}, title={StandardForm}, year={2007}, url={https://reference.wolfram.com/language/ref/StandardForm.html}, note=[Accessed: 13-June-2026]}