Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Format Types  /
InputForm

  • InputForm[ expr ] prints as a version of expr suitable for input to Mathematica.
  • Example: InputForm[x^2 + 1/a].
  • InputForm always produces one-dimensional output, suitable to be typed as lines of Mathematica input.
  • InputForm acts as a "wrapper", which affects printing, but not evaluation.
  • Put (>>) produces InputForm by default.
  • 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.
  • See the Mathematica book: Section 1.9.4, Section 1.10.9Section 2.8.1.
  • See also: OutputForm, FullForm, StandardForm.

    Further Examples

    Here is a Mathematica expression; both input and output are in StandardForm.

    In[1]:=

    Out[1]=

    This gives the InputForm.

    In[2]:=

    Out[2]//InputForm=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.