MAXIMA(1)
π MAXIMA(1) π
okay so first things first, this is the manpage for Maxima, from the General Commands Manual β and bestie, buckle up, because this thing is a whole personality. π
β¨ NAME β¨
Maximaβ the Common Lisp version of the MACSYMA symbolic mathematics package, released under the GNU Public License π«Άrmaximaβ a version of Maxima that supports command autocompletion (yes, it tab-completes, we love her) β¨Xmaximaβ a graphical version of Maxima π¦
β¨ SYNOPSIS β¨
maxima [options]
rmaxima [options]
xmaxima [options]
β¨ DESCRIPTION β¨
So Maxima is a version of the MIT-developed MACSYMA system, but modified to run under Common Lisp. It's literally an interactive expert system and a programming environment for symbolic and numerical mathematical manipulation. Dual threat. Main character energy. π
It's written in Lisp, and it lets you do all of this:
- differentiation
- integration
- solution of linear or polynomial equations
- factoring of polynomials
- expansion of functions in Laurent or Taylor series
- computation of Poisson series
- matrix and tensor manipulations
- two- and three-dimensional graphics
Procedures may be written using an ALGOL-like syntax, and both Lisp-like functions and pattern matching facilities are provided. Files containing Maxima objects may be read from and written to disk files. Pre-written Maxima commands may be read from a file and executed, allowing batch-mode use. fr fr it does everything. π
β¨ OPTIONS β¨
-b file,--batch=fileβ process file in noninteractive mode.--batch-lisp=fileβ process Lisp file file in noninteractive mode.--batch-string=stringβ process string in noninteractive mode.-d,--directoriesβ display Maxima directory information.--disable-readlineβ disable readline support. (readline said: not today π)-g,--enable-lisp-debuggerβ enable the Lisp debugger.-h,--helpβ display a brief usage summary.--init=stringβ load the Maxima and Lisp initialization filesstring.macandstring.lispat startup.--init-mac=fileβ load the Maxima initialization file file at startup.--init-lisp=fileβ load the Lisp initialization file file at startup.-l lisp,--lisp=lispβ use Lisp implementation lisp. Use--list-availto see the list of possible values. π--list-availβ list the available Lisp and Maxima versions.-p lisp_file,--preload-lisp=lisp_fileβ preload lisp_file.-q,--quietβ suppress the Maxima start-up message. π€«-Q,--quit-on-errorβ quit, and return an exit code1, when Maxima encounters an error.-r string,--run-string=stringβ process string in interactive mode.-s port,--server=portβ connect Maxima to server on port.
π¨ ngl this one confuses people: this does not create a Maxima server. Maxima is the client. She's the one calling, not the one answering.
-u version,--use-version=versionβ launch Maxima version version. Use--list-availto see the list of possible values.--userdir=directoryβ use directory for user directory (default is%USERPROFILE%/maximafor Windows,$HOME/.maximafor others).-v,--verboseβ print extra information from the Maxima wrapper script.--versionβ print the (default) installed version.--very-quietβ suppress expression labels, the Maxima start-up message, verification of the HTML index and loading related messages.--very-very-quietβ in addition to--very-quiet, suppress most printed output. π (she goes quiet mode then quieter mode, iconic)-X Lisp options,--lisp-options=Lisp optionsβ options to be given to the underlying Lisp.--no-init,--norcβ do not load the init file(s) on startup.--no-verify-html-indexβ do not verify on startup that the set of html topics is consistent with text topics.--suppress-input-echoβ do not print input expressions when processing noninteractively.
β¨ INTRODUCTORY INSTRUCTIONS β¨
Upon initialization, maxima prints a startup message, then a command line prompt:
(%i1)
Every single Maxima command has to be concluded with either:
- a semicolon β in which case the result of the command is echoed on a display line, prefaced by
%owith an appended sequence number, or - a dollar sign β which suppresses printing of a display line. π€«
β¨ EXAMPLE β¨
(%i1) diff(sin(x),x);
(%o1) cos(x)
(%i2) integrate(%o1,x);
(%o2) sin(x)
The user types in commands which create Maxima objects (such as functions and system variables) and which manipulate these objects. Look at her go. π§
On UNIX it may be preferable to run Maxima under Gnu Emacs or XEmacs. You can do this by invoking shell mode in emacs, and then invoking maxima. Preferably, install maxima.el from the distribution and use the command:
M-x maxima
The main advantage of working inside emacs is that it provides a complete history of input/output. And if you execute the command
display2d: false
you will be able to use your output as input, by simply killing and yanking. π
Lisp is built into Maxima. The function to_lisp() enters the Lisp read-eval-print loop. The Lisp function (run) may be used to return to Maxima. Alternatively, single Lisp commands may be invoked by starting a command line with :lisp.
β¨ BUILT-IN HELP β¨
The reference manual can be accessed from the Maxima input prompt. A description of a given command can be obtained by typing the command
describe(command);
or, simply,
? command
The command
?? command
searches the list of functions for the string command and prints matching functions.
Demonstration files provide complete examples of problems solved with Maxima, and may be accessed with the command demo(command);. A library of user-contributed command files is also provided (the share library), directed toward a variety of problems. π
β¨ OTHER DOCUMENTATION β¨
The reference manual is provided in both info and html formats. Bestie gets options. π
β¨ COMMAND PRIMER β¨
This list includes only commands which the beginner might find useful to know about prior to studying the reference manual and other texts. Lowkey a starter pack. π
batch("myfile");β execute the contents of filemyfile, which is assumed to contain Maxima commands.closefile("myfile");β close session file opened by awritefilecommand (see below).demo("myfile");β execute the contents of filemyfile, which is assumed to contain Maxima commands, one line at a time.ev(infolists);β print the contents of all of the available information lists.functions;β print a list of the names of currently defined functions.infolists;β print a list of the various available information lists.kill(objectlist);β eliminate the object(s) contained within parentheses;kill(all)delete all objects created by the user, restoring Maxima to its initial state. πquit();β leave Maxima. bye bestie πreset();β reset all Maxima control parameters to their default states.values;β print a list of the names of currently assigned scalar values.writefile("myfile");β write record of session to filemyfile; only one file at a time can be open, and theclosefilecommand must be invoked prior to leaving Maxima to flush the buffer.
β οΈ fr fr do not forget that closefile before you dip, or your buffer just vibes there unflushed.
β¨ PLOTTING COMMANDS β¨
Maxima is capable of producing 2- and 3-dimensional plots. Here is a simple 2-dimensional example:
plot2d (sin(x), [x, -2*%pi, 2*%pi]);
and a simple 3-dimensional example:
plot3d (2^(-u^2 + v^2), [u, -5, 5], [v, -7, 7]);
By default plots are made by the gnuplot plotting package. Plots can be made by other means; see "? plot_options". For more information about plotting, see "? plot". πΈ
β¨ FILES β¨
/usr/lib/maxima/5.50.0/binary-lispβ compiled files for lisp implementation lisp/usr/infoβ primary documentation directory, containing info files which are used for thedescribecommand, and also for viewing under emacs or other info viewer./usr/share/maxima/5.50.0/doc/htmlβ HTML version of info documentation./usr/share/maxima/5.50.0/demoβ Maxima demo files./usr/share/maxima/5.50.0/emacsβ Elisp files for use with Emacs or XEmacs./usr/share/maxima/5.50.0/shareβ contributed external packages./usr/share/maxima/5.50.0/doc/shareβ documentation for contributed external packages./usr/share/maxima/5.50.0/srcβ complete Maxima source. π/usr/share/maxima/5.50.0/testsβ test suite./usr/share/maxima/5.50.0/xmaximaβ Xmaxima support files./usr/libexec/maxima/5.50.0/β Maxima utility scripts.
β¨ ENVIRONMENT VARIABLES β¨
MAXIMA_USERDIRβ points to a directory for user customization files. Maxima's default search paths includeMAXIMA_USERDIR. Default value:$HOME/.maxima.MAXIMA_PREFIXβ Maxima looks for its input files in the directory configured at compile time,/usr. Maxima can be relocated to a different directory as long as themaximascript maintains the same relative position with respect to the Maxima input files. If, for some reason, themaximascript needs to be relocated independently,MAXIMA_PREFIXneeds to be set to point to the top of the tree holding the input files.MAXIMA_DIRECTORYβMAXIMA_DIRECTORYis equivalent toMAXIMA_PREFIX. It is included only for backward compatibility with older versions of Maxima.
Maxima uses several other environment variables for communication between the maxima script and the lisp image. All such variables start with MAXIMA_. They should not need to be modified by the user. π
π CUSTOMIZATION FILES π
Okay bestie, this is where you make Maxima yours π . These are the little knobs and bows that change how your setup behaves.
π§Έ maximarc
maximarc is sourced by the maxima script at startup. It should be located in $MAXIMA_USERDIR (see above π). maximarc can be used, e.g., to change the userβs default lisp implementation choice to CMUCL by including the line:
MAXIMA_LISP=cmucl
So yes, one tiny line and your Lisp of choice is main character β¨.
π maxima-init.lisp
At startup, Maxima will load the lisp file maxima-init.lisp if it is found in the search path. For user customization, maxima-init.lisp should be placed in the $MAXIMA_USERDIR (see above). Since Maxima typically has a system maxima-init.lisp in the Maxima share directory, the user may want to copy the contents of the system maxima-init.lisp into their custom file. Alternatively, the user can load a Lisp initialization file with another name or location by means of the --init-lisp or --init command-line options. Obsessed with options that let you be extra π
.
π¦ maxima-init.mac
At startup, Maxima will load the file maxima-init.mac if it is found in the search path. For user customization, maxima-init.mac should be placed in the $MAXIMA_USERDIR (see above). Alternatively, the user can load a Maxima initialization file with another name or location by means of the --init-mac or --init command-line options. Same energy, different file extension π.
πΈ ~/.xmaximarc
Here Xmaxima stores personal settings. Tiny file, big personalization vibes.
π ~/.xmaxima_history
Here Xmaxima stores the command history. Your past commands, preserved like a little group chat archive π.
π REFERENCES π
- Old Reference:
MACSYMA Reference Manual(volumes 1 and 2). The Mathlab Group, Laboratory for Computer Science, MIT. Version 10. January 1983. - Newer references:
https://maxima.sourceforge.io
Thatβs the lore, bestie: old-school manual, new-school site β¨.
π BUGS π
Maxima is a complex system. It includes both known and unknown bugs. Use at your own risk. The Maxima bug database is available at
https://sourceforge.net/p/maxima/bugs/
New bug reports are always appreciated. Please include the output of the Maxima function build_info() with the report.
Fr fr, if you find a bug, tell the Maxima project β but bring the build_info() output with you, okay? Itβs giving βhelp me help youβ π«Ά.
π AUTHORS π
MACSYMA (Project MAC's SYmbolic MAnipulation System) was developed by the Mathlab group of the MIT Laboratory for Computer Science (originally known as Project MAC), during the years 1969-1972. Their work was supported by grants NSG 1323 of the National Aeronautics and Space Administration, N00014-77-C-0641 of the Office of Naval Research, ET-78-C-02-4687 of the U.S. Department of Energy, and F49620-79-C-020 of the U.S. Air Force. MACSYMA was further modified for use under the UNIX operating system (for use on DEC VAX computers and Sun workstations), by Richard Fateman and colleagues at the University of California at Berkeley; this version of MACSYMA is known as VAXIMA. The present version stems from a re-working of the public domain MIT MACSYMA for GNU Common Lisp, prepared by William Schelter, University of Texas at Austin until his passing away in 2001. It contains numerous additions, extensions and enhancements of the original. The original version of this manual page was written by R. P. C. Rodgers, UCSF School of Pharmacy, San Francisco, CA 94143 (rodgers@maxwell.mmwb.ucsf.edu) in 1989. It was extensively revised by James Amundson in 2002.
Maxima is now developed and maintained by the Maxima project at https://maxima.sourceforge.io.
π SEE ALSO π
This pageβs source/version is MAXIMA(1) and the date on it is 2022-07-18 β periodt πβ¨
π¦ where this page comes from
- arch rolling: maxima 5.50.0-5 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms