This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Built-in Functions / Programming / Debugging /

Further Examples: Trace

This shows the order of operations in a simple arithmetic expression.

In[1]:=

Out[1]=

Here is the recursive definition of the Fibonacci numbers.

In[2]:=

Here are the end conditions for the recursion.

In[3]:=

Out[3]=

This tells Trace to return only the arguments of fib used in the evaluation of fib[5].

In[4]:=

Out[4]=

This shows all occurrences of fib in the evaluation of fib[3].

In[5]:=

Out[5]=

In[6]:=