Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Mathematica Sessions  /
Quit

  • Quit[ ] terminates a Mathematica session.
  • All definitions that you have not explicitly saved in files are lost when the Mathematica session terminates.
  • Before terminating a session, Mathematica executes any delayed value that has been assigned to the global variable $Epilog. Conventionally, this attempts to read in a file end.m of commands to be executed before termination.
  • On most computer systems, Quit[ n ] terminates Mathematica, passing the integer n as an exit code to the operating system.
  • Exit is a synonym for Quit.
  • See the Mathematica book: Section 1.0.2, Section 2.13.1Section A.7.5.
  • See also: Return, $IgnoreEOF.


    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.