Wolfram Computation Meets Knowledge

Wolfram Language & System Documentation Center Wolfram Language Home Page »

Trace

Trace[expr]

generates a list of all expressions used in the evaluation of expr.

Trace[expr,form]

includes only those expressions that match form.

Trace[expr,s]

includes all evaluations that use transformation rules associated with the symbol s.

Details and Options

Examples

Basic Examples  (2)

Trace each step in an evaluation:

Trace only the computations with head Times:

Use Trace to trace the operation of FoldList:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_trace, organization={Wolfram Research}, title={Trace}, year={1991}, url={https://reference.wolfram.com/language/ref/Trace.html}, note=[Accessed: 18-May-2024 ]}

Top