|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
AbortProtect
AbortProtect[expr]
evaluates expr, saving any aborts until the evaluation is complete.
DetailsDetails
- Aborts that are generated during an AbortProtect take effect as soon as the execution of the AbortProtect is over.
- CheckAbort can be used inside AbortProtect to catch and absorb any aborts that occur.
- AbortProtect also protects against aborts generated by TimeConstrained and MemoryConstrained.
ExamplesExamplesopen allclose all
Basic Examples (2)Basic Examples (2)
Protect part of a computation from early termination:
Make sure that an iteration is finished in a time-constrained computation:
| In[1]:= |
| Out[1]= |
Without AbortProtect, typically imax is updated, but not x:
| In[2]:= |
| Out[2]= |
New in 2
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
