This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
How to | Suppress the Output of a Computation
Often you need to perform intermediate steps in a calculation but have no need to see the results. By suppressing the output you save memory to store the notebook and may even save formatting time. You will also be able to see the important parts of the notebook more easily.
You can suppress output in Mathematica by placing a semicolon (;) at the end of the line:
For example, consider:
Click for copyable input
Suppress the output:
Click for copyable input
This creates a small table of values and exports it to a text file. There is no point in seeing the numbers, so the result is suppressed:
Click for copyable input
You can also use ; to condense multiple lines into a single line. The output here is 2 since only the output of the last statement, , is displayed:
Click for copyable input
Use ; at the end to stop any output:
Click for copyable input
Using ; to chain commands extends to any number:
Click for copyable input