DOCUMENTATION CENTER SEARCH
Mathematica
>
Basic Input & Output in Programs
>
Built-in
Mathematica
Symbol
Repetitive Operations
Generating Unstructured Output
Tutorials »
|
PrintTemporary
CellPrint
Message
Monitor
Put
Write
Reap
EvaluationMonitor
StepMonitor
FilePrint
MessageDialog
See Also »
|
Basic Input & Output in Programs
Document Generation
MathLink Packets
Palettes
Procedural Programming
Tuning & Debugging
More About »
Print
Print
[
expr
]
prints
expr
as output.
MORE INFORMATION
In a notebook,
Print
generates a cell with style
"Print"
.
Print
can print any expression, including graphics and dynamic objects.
Print
[
expr
1
,
expr
2
,
...
]
prints
expr
i
concatenated together, effectively using
Row
.
»
With a text-based interface,
Print
ends its output with a single newline (line feed).
You can arrange to have expressions on several lines by using
Column
.
»
Print
sends its output to the channel
$Output
.
Print
uses the format type of
$Output
as its default format type.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
Print
x+y
, then print
a+b
:
In[1]:=
Print the first 5 primes:
In[1]:=
Scope
(7)
Generalizations & Extensions
(1)
Applications
(2)
Properties & Relations
(1)
SEE ALSO
PrintTemporary
CellPrint
Message
Monitor
Put
Write
Reap
EvaluationMonitor
StepMonitor
FilePrint
MessageDialog
TUTORIALS
Repetitive Operations
Generating Unstructured Output
MORE ABOUT
Basic Input & Output in Programs
Document Generation
MathLink Packets
Palettes
Procedural Programming
Tuning & Debugging
New in 1 | Last modified in 6
© 2008 Wolfram Research, Inc.