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.

Examples

open allclose all

Basic Examples  (2)

StandardForm is used by default for output:

StandardForm for graphics:

Scope  (7)

Basic Objects  (2)

Integer, Rational, Real, and Complex numbers:

Arbitrary-precision Real and Complex numbers:

Special constants:

Characters and strings of characters:

Control characters for strings:

Special Input Forms  (3)

Different Power expressions:

Special typeset expressions:

Different list structures:

Special Output Forms  (2)

Some objects use a special output representation:

Compare with the underlying FullForm of the expression:

Some objects use an elided output representation:

The elided parts are visible using InputForm:

Properties & Relations  (5)

StandardForm affects display but not evaluation:

Apply StandardForm to the evaluated integral:

StandardForm is two-dimensional unambiguous formatting:

OutputForm approximates StandardForm using keyboard characters:

TraditionalForm is two-dimensional, but ambiguous formatting:

InputForm and FullForm provide one-dimensional formatting:

Use ToString to generate a string in StandardForm:

The string includes two-dimensional markup:

Use ToExpression to convert back:

Use ToBoxes to get the box representation of an expression in StandardForm:

Use ToExpression to convert back:

Add formatting via Format:

Neat Examples  (1)

Nested roots:

Nested powers:

Introduced in 1996
 (3.0)
 |
Updated in 2007
 (6.0)