Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >
BUILT-IN MATHEMATICA SYMBOLTutorials »|See Also »

TraceForward

TraceForward
is an option for Trace and related functions which specifies whether to include later expressions on the evaluation chain that contains the pattern form sought.
  • TraceForward->True includes the final expression on the evaluation chain that contains form.
  • TraceForward->All includes all expressions after form on the evaluation chain that contains form.
  • TraceForward allows you to see the transformations performed on an expression generated during an evaluation.
A recursive definition for finding Fibonacci numbers:
Show only what evaluations of are encountered:
Show only the evaluations of and the results:
Show all intermediate evaluations between calls of and the result:
A recursive definition for finding Fibonacci numbers:
In[1]:=
Click for copyable input
Show only what evaluations of are encountered:
In[2]:=
Click for copyable input
Out[2]=
Show only the evaluations of and the results:
In[3]:=
Click for copyable input
Out[3]=
Show all intermediate evaluations between calls of and the result:
In[4]:=
Click for copyable input
Out[4]=
New in 2
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF