is a special symbol that is returned as the result from a calculation that has been aborted.
$Aborted
is a special symbol that is returned as the result from a calculation that has been aborted.
Examples
Basic Examples (2)
$Aborted is returned by a calculation that was aborted:
Print[a];Abort[];Print[b]$Aborted is returned by TimeConstrained when a calculation exceeds its given time constraint:
TimeConstrained[Pause[2], 1]$Aborted is returned by MemoryConstrained when a calculation exceeds its given memory constraint:
MemoryConstrained[Range[10 ^ 6], 10000]Try a computation with exact arithmetic and fall back to machine arithmetic if it is too slow:
f[n_] := Module[{g = 4 #(1 - #)&},
x = TimeConstrained[Nest[g, 1 / 10, n], 1];
If[x === $Aborted, x = Nest[g, .1, n]];
x]f[4]f[100]Tech Notes
Related Guides
-
▪
- Messages
History
Introduced in 1991 (2.0)
Text
Wolfram Research (1991), $Aborted, Wolfram Language function, https://reference.wolfram.com/language/ref/$Aborted.html.
CMS
Wolfram Language. 1991. "$Aborted." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$Aborted.html.
APA
Wolfram Language. (1991). $Aborted. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$Aborted.html
BibTeX
@misc{reference.wolfram_2026_$aborted, author="Wolfram Research", title="{$Aborted}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/$Aborted.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$aborted, organization={Wolfram Research}, title={$Aborted}, year={1991}, url={https://reference.wolfram.com/language/ref/$Aborted.html}, note=[Accessed: 13-June-2026]}