MATHEMATICA(1) USER COMMANDS MATHEMATICA(1) NAME mathematica - X front end to _M_a_t_h_e_m_a_t_i_c_a SYNOPSIS mathematica [-allowEditRes _T_R_U_E/_F_A_L_S_E] [-applicationResour- cesDirectory _d_i_r_e_c_t_o_r_y] [-doubleClickTime _i_n_t_e_g_e_r] [-pre- ferencesDirectory _d_i_r_e_c_t_o_r_y] [-printCommand _s_t_r_i_n_g] [_f_i_l_e] DESCRIPTION The mathematica command runs the X front end to _M_a_t_h_e_m_a_t_i_c_a. _M_a_t_h_e_m_a_t_i_c_a is an interactive system for doing mathematical computation. It handles numeric, symbolic, and graphical calculations and incorporates a high-level programming language. _M_a_t_h_e_m_a_t_i_c_a documents are called notebooks. Notebooks are structured, hierarchical documents in which text, _M_a_t_h_e_m_a_- _t_i_c_a input and output, and graphics can be combined. You can produce notebooks that are interactive documents, join- ing explanatory text with computations. The basic structural unit in a notebook is a cell, which is roughly analagous to a paragraph in ordinary text. For example, a cell may contain commentary text, graphics, _M_a_t_h_e_m_a_t_i_c_a expressions to be used for computations, or _M_a_t_h_e_m_a_t_i_c_a output. Each type of information (i.e., text, graphics, input) is placed in its own cell. Cells can be grouped to reflect the logical structure of the document, just as the paragraphs of a book are grouped into sections and chapters. Each notebook incorporates its own stylesheet, which specifies text attributes such as font, typeface, and size for different kinds of cells. You can apply the styles to individual cells to designate those cells as titles and subtitles, page headers and footers, input and output, and so forth. To start the default _M_a_t_h_e_m_a_t_i_c_a kernel, simply type in any calculation (e.g. 2+2), and press Shift-Return to evaluate the cell. This may take a moment to evaluate because the kernel must be started. All subsequent evaluations will be much faster. For more help, select the On Context command from the Help menu. This will produce a question mark-shaped pointer. Click on any part of the notebook window, or on any menu function, with the question mark pointer in order to get more help. For help with the kernel functions, select the Open Function Browser command from the help menu. If you have not started a kernel yet, the Function Browser will start one for you, which may cause a noticeable delay. Sun Release 4.1 Last change: 2 September 1993 1 MATHEMATICA(1) USER COMMANDS MATHEMATICA(1) On initialization, _M_a_t_h_e_m_a_t_i_c_a reads application-specific resources from the file XMathematica. An XMathematica file in your home directory will override any system-wide XMathematica file. The mathematica command actually runs a shell script, which executes the binary file frontend. The shell script calls the binary file with arguments that set various parameters for _M_a_t_h_e_m_a_t_i_c_a's operation. Many of these parameters can be controlled by the options given in the mathematica com- mand line. OPTIONS -allowEditRes _T_R_U_E/_F_A_L_S_E Enables/disables the ability to use editres with the front end; FALSE is the default. -applicationResourcesDirectory _d_i_r_e_c_t_o_r_y Where to look for system files (e.g., Resources.app.mb). -doubleClickTime _i_n_t_e_g_e_r Time in milliseconds between clicks to register a double-click; 750 is the default. -preferencesDirectory _d_i_r_e_c_t_o_r_y Where to look for the preferences file (if one doesn't exist, a new one is put here); the preferences file stores all options set in the Preferences submenu and all kernel definitions; ~ is the default. -printCommand _s_t_r_i_n_g Shell command that appears in the Print dialog box. FILES Note: The locations of _M_a_t_h_e_m_a_t_i_c_a files are determined at the time of installation, and need not always be the same. frontend _M_a_t_h_e_m_a_t_i_c_a X front end binary FrontEndHelp.ma help notebook for front end features Normal.ma default cell styles notebook Presentations.ma alternate cell styles notebook using large default fonts Resources.app.mb binary data for the front end Resources.prefs.mb default preferences data for the front end SampleNotebooks/* _M_a_t_h_e_m_a_t_i_c_a sample notebooks XMathematica application-specific X resource settings Sun Release 4.1 Last change: 2 September 1993 2 MATHEMATICA(1) USER COMMANDS MATHEMATICA(1) SEE ALSO math(1), psfix(1), rasterps(1) S. Wolfram, _M_a_t_h_e_m_a_t_i_c_a: _A _S_y_s_t_e_m _f_o_r _D_o_i_n_g _M_a_t_h_e_m_a_t_i_c_s _b_y _C_o_m_p_u_t_e_r, Second Edition, Addison-Wesley, 1991 _M_a_t_h_e_m_a_t_i_c_a _U_s_e_r'_s _G_u_i_d_e _f_o_r _t_h_e _U_n_i_x _S_h_e_l_l _M_a_t_h_e_m_a_t_i_c_a _U_s_e_r'_s _G_u_i_d_e _f_o_r _t_h_e _X _F_r_o_n_t _E_n_d _M_a_t_h_e_m_a_t_i_c_a _I_n_s_t_a_l_l_a_t_i_o_n _M_a_n_u_a_l Sun Release 4.1 Last change: 2 September 1993 3