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.

Details

  • 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.

Examples

Basic Examples  (1)

A recursive definition for finding Fibonacci numbers:

Show only what evaluations of fib are encountered:

Show only the evaluations of fib and the results:

Show all intermediate evaluations between calls of fib and the result:

Introduced in 1991
 (2.0)