This is documentation for Mathematica 3, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
 Documentation / Mathematica / Built-in Functions / Mathematica Sessions  /
Out

  • % n or Out[ n ] is a global object that is assigned to be the value produced on the n output line.
  • % gives the last result generated.
  • %% gives the result before last. %% ... % (k times) gives the k previous result.
  • Out[ ] is equivalent to %.
  • Out[- k ] is equivalent to %% ... % (k times).
  • See the Mathematica book: Section 1.2.1, Section 1.3.3, Section 1.3.4Section 2.13.1.
  • See also: In, $Line, $HistoryLength, MessageList.

    Further Examples

    Here is an expression.

    In[1]:=

    Out[1]=

    This gives the output of the previous expression.

    In[2]:=

    Out[2]=