Out

%n or Out[n]

is a global object that is assigned to be the value produced on the n^(th) output line.

%

gives the last result generated.

%%

gives the result before last. %%% (k times) gives the k^(th) previous result.

Details

  • Out[] is equivalent to %.
  • Out[-k] is equivalent to %%% (k times).

Examples

Basic Examples  (1)

Given a sequence of inputs:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Recall the outputs:

In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

See Also

In  $Line  $HistoryLength  MessageList

Tutorials

Introduced in 1988
(1.0)