TraceBackward

TraceBackward

is an option for Trace and related functions that specifies whether to include preceding expressions on the evaluation chain that contains the pattern form sought.

Details

  • TraceBackward->True includes the first expression on the evaluation chain that contains form.
  • TraceBackward->All includes all expressions before form on the evaluation chain that contains form.
  • TraceBackward allows you to see the previous forms that an expression had during an evaluation.

Examples

Basic Examples  (1)

A recursive definition for finding Fibonacci numbers:

Show only what additions of positive integers are required:

Show the beginning of the evaluation chain that leads to each addition:

Show all intermediate evaluations that led to each addition:

Wolfram Research (1991), TraceBackward, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceBackward.html.

Text

Wolfram Research (1991), TraceBackward, Wolfram Language function, https://reference.wolfram.com/language/ref/TraceBackward.html.

CMS

Wolfram Language. 1991. "TraceBackward." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TraceBackward.html.

APA

Wolfram Language. (1991). TraceBackward. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TraceBackward.html

BibTeX

@misc{reference.wolfram_2024_tracebackward, author="Wolfram Research", title="{TraceBackward}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TraceBackward.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_tracebackward, organization={Wolfram Research}, title={TraceBackward}, year={1991}, url={https://reference.wolfram.com/language/ref/TraceBackward.html}, note=[Accessed: 22-November-2024 ]}