TraceOriginal

TraceOriginal

is an option for Trace that specifies whether to test the form of each expression before its head and arguments are evaluated.

Details

  • With the default TraceOriginal->False, the forms of expressions generated during an evaluation are tested only after their head and arguments have been evaluated. In addition, evaluation chains for expressions which do not change under evaluation are not included.
  • With TraceOriginal->True, the forms before evaluation of the head and arguments are also tested, and evaluation chains for expressions which do not change under evaluation are included.
  • With TraceOriginal->Automatic, the forms before evaluation of the head and arguments are also tested, but evaluation chains for expressions that do not change under evaluation are not included.

Examples

Basic Examples  (1)

Trace evaluation of an expression showing evaluation chains for expressions that change:

Show evaluation chains even for expressions that do not change:

Show the starting point of each evaluation chain, but drop chains that do not change:

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

Text

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

CMS

Wolfram Language. 1991. "TraceOriginal." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/TraceOriginal.html.

APA

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

BibTeX

@misc{reference.wolfram_2023_traceoriginal, author="Wolfram Research", title="{TraceOriginal}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/TraceOriginal.html}", note=[Accessed: 18-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_traceoriginal, organization={Wolfram Research}, title={TraceOriginal}, year={2023}, url={https://reference.wolfram.com/language/ref/TraceOriginal.html}, note=[Accessed: 18-March-2024 ]}