Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Input and Output / Basic Operations  /
Print

  • Print[ , , ... ] prints the , followed by a newline (line feed).
  • Print sends its output to the channel $Output.
  • Print uses OutputForm as the default format type.
  • Print concatenates the output from each together, effectively using SequenceForm.
  • You can arrange to have expressions on several lines by using ColumnForm.
  • See the Mathematica book: Section 1.7.3Section 2.8.18.
  • See also: CellPrint, Message, Put, Write.

    Further Examples

    The output of Print is not a string.

    In[1]:=

    Evaluating this won't make p into a string.

    In[2]:=

    Global`p

    p = Null

    In[3]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.