Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Notebooks and Documents > Mathematical Typesetting >

InputForm

InputForm[expr]
prints as a version of expr suitable for input to Mathematica.
  • InputForm always produces one-dimensional output, suitable to be typed as lines of Mathematica input.
  • InputForm acts as a "wrapper", which affects display, but not evaluation.  »
  • Short[InputForm[expr]] can be used, but may generate skeleton objects which cannot be given as Mathematica input.
  • The option NumberMarks can be used to specify whether ` marks should be used to indicate type, precision or accuracy of approximate numbers.  »
Integer, Rational, Real and Complex numbers:
Arbitrary-precision Real and Complex numbers:
Special constants:
Characters and strings of characters:
Control characters for strings:
Different ways of representing Power expressions:
Special typeset expressions:
Different list structures:
Input without special interpretation:
With special characters in the same positions there may be special interpretations:
In the case of superscripts, most things get interpreted as Power:
Some objects use a special output representation:
Some objects use an elided output representation:
The elided parts are visible using InputForm:
Machine numbers format without number marks by default:
The same number with number marks:
Extended-precision numbers include number marks by default:
Without number marks:
A mixed symbolic and numeric expression:
Include number marks for all numbers:
Omit all number marks:
InputForm affects display but not evaluation:
Apply InputForm to the evaluated integral:
InputForm has a linear formatting:
FullForm has linear formatting without special syntax:
OutputForm, StandardForm and TraditionalForm all provide two-dimensional formatting:
Use ToString to generate a string in input form:
New in 1 | Last modified in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team