Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 4. Files - Pg. 93

Files Introduction 93 4.1 Loading Packages 94 4.1.1 Standard Packages 94 << 4.1.2 Forgetting to Load 96 4.1.3 Other Packages and Add-Ons 97 $BaseDirectory, $UserBaseDirectory 4.2 Exporting and Importing 100 4.2.1 Exporting and Importing Data 100 Export, Import, $ExportFormats, FilePrint, etc. 4.2.2 Exporting and Importing Graphics 105 Export, Import, $ExportFormats, etc. 4.2.3 Locating the File 107 Directory, $Path, SetDirectory, ResetDirectory, FileNames 4.3 Saving for Other Purposes 109 4.3.1 Continuing Work in Later Sessions 109 >>, <<, Save, >>>, DumpSave 4.3.2 Exporting to TeX, C, Fortran, and HTML 111 TeXForm, CForm, FortranForm, MathMLForm 4.4 Managing Time and Memory 112 4.4.1 Managing Time Consumption 112 Timing, TimeConstrained, TimeUsed, DateList, etc. 4.4.2 Managing Memory Consumption 113 ByteCount, MaxMemoryUsed, MaxMemoryUsed, Share, etc. Introduction The world's greatest and most powerful computer was constructed, so mathematicians decided to test it out by seeing if it could make any impression on some classical unsolved problems. They decided on Fermat's last theorem (this happened prior to the work of Andrew Wiles), namely that x n +y n = z n has no solutions over the natural numbers for n ¥ 3. For days they fed it with every known piece of information, conjecture, and partial result, and at last they set it to work. After a few minutes it printed out: "I have a wonderful proof of this result, but my memory is too small to store it." Note that you may skip this chapter if you right now do not need (or already know how) to do the following: · use the packages of Mathematica; · read data or graphics from a file; · write data or graphics into a file; · save results for later use; · convert results and notebooks for TeX, HTML, C, or Fortran; · speed up calculations; or · save memory consumption.