Home | | Mathematics | | * Maxima | | Share This Page |
(double-click any word to see its definition)
The current version of Maxima can be gotten at:
Maxima (SourceForge)
The current version of wxMaxima (a graphical front end for Maxima) can be gotten at:
wxMaxima (SourceForge)
Linux users take note — in most cases, you can get Maxima and wxMaxima without having to visit these sites, by using your favorite package management tool (yum or apt, depending on your distribution). Details below.
Again, the Maxima online manual is here:
Maxima online manual
Windows
If you are running Windows, visit Maxima (SourceForge) and download and run the listed Windows installation .exe and most everything will be automatic (the Windows package bundles Maxima with wxMaxima and other necessities). Be sure to select the wxMaxima option that is offered during the installation.
When you first run wxMaxima (an icon is placed on your desktop by default), your firewall software may complain that a socket is being opened. This is a local socket that wxMaxima (the user-friendly graphical front end) uses to communicate with Maxima (the computation engine), it is not an attempt to take over your computer or communicate your personal secrets to ruthless Russian mobsters. Suspend your paranoia and allow the socket to be created.
Linux
I run Fedora and I have installed Maxima and wxMaxima multiple times recently, so the instructions below will very likely work without change for anyone running a recent version of Fedora and similar distributions. Other distributions will need to work out variations on this installation procedure to suit differing package management programs.
Fedora, Red Hat, Mandrake, Yellow Dog (yum package manager)
In 99% of cases, upon entering the last command above, you will see the wxMaxima graphic interface. To avoid having to open a shell each time you run wxMaxima, drop this icon onto your desktop.
- Open a root shell. Below, this root shell is indicated by a '#' symbol at the left of each entered command.
- # yum -y install maxima gnuplot wxMaxima
- Now change to a normal user shell, designated by '$' at the left.
- $ wxmaxima
Debian, Ubuntu (apt-get package manager) (untested)
I don't run these Linux distributions, so this is only an educated guess. Follow the instructions above, but replace the command "yum" with "apt-get". Chances are everything else will work the same, and if not, tell me.
Both Windows and Linux
A new convention. In these instructions, your entries to wxMaxima will appear in blue, wxMaxima's (and Maxima's) replies will appear in normal black text.
Acquiring and installing a Greek font on your system is an important addition — it allows all those Greek characters, common in mathematical expressions, to be displayed properly. Here is a link to a free font:SPIonic.ttfFor Windows systems, place this font in the directory \Windows\Fonts. For Linux, place it in /usr/share/fonts (there may be some distribution-dependent variations in this location). Next, for all platforms, run wxMaxima and go to the menu item "Edit ... Configure ... Style tab", select "Use Greek Font", then click the "Greek" button, navigate to and select the font you have just installed.
The change should take effect immediately. To test the ability of wxMaxima to render correctly, type examples of Greek characters in wxMaxima using this notation:
%Omega;The results shown above indicate success. If your typed strings reappear in the output unchanged, something went wrong — go over the instructions above and repeat any steps you missed.
Ω
%omega;
ω
It is my fervent hope that from this point onward, the instructions will correspond to readers' experience without reference to too many platform-specific distinctions. I have a Windows version and a Linux version of wxMaxima running side by side, so I should be able to detect the more obvious kinds of variations. I hope I don't find too many.
At this point, run wxMaxima. If you have finished your installation using the instructions above, you should be able to click a desktop icon, and the wxMaxima graphical interface should appear:
The designer of wxMaxima has adopted the convention that user entries should be typed in the entry window at the bottom of the display, at which point they are communicated to Maxima (strictly speaking, a separate running program) and Maxima's replies will appear in the large central window.
Let's make an entry. Type into wxMaxima what is in blue below, and press Enter. You should see the result that is shown in normal black text:
factor(50!);
247 322 512 78 114 133 172 192 232 29 31 37 41 43 47
First, notice whether or not your entry produces this result. One possible problem that might come up is that wxMaxima (the user-friendly front end) automatically produces a matching right parenthesis when you type a left parenthesis. This is a nice, time-saving feature, but it takes some adjustment at first. This feature can be turned off in wxMaxima's preferences dialog (Edit ... Configure ... deselect "Match parenthesis in text controls") if it makes you completely crazy.
Second, wxMaxima automatically provides the semicolon at the end of the entry, you don't need to type this character.
Third, if anything goes wrong at this point, if the result on your system doesn't match up with what is shown above, carefully go over the installation instructions again.
Fourth, a digression into matters that are purely mathematical. The above expression "50!" means "50 factorial", a mathematical operation that causes 50 to be multiplied by 49, and that by 48, etc. down to 2. Very simply, the factorial of a number N is the number of ways N objects can be arranged. For a set of objects, let's say letters, we can easily generate all the possible arrangements (technically these are called "permutations"):
permutations([a,b,c]);
{[a,b,c],[a,c,b],[b,a,c],[b,c,a],[c,a,b],[c,b,a]}
length(permutations([a,b,c]));
6
3!;
6
length(permutations([a,b,c,d]));
24
4!;
24
length(permutations([a,b,c,d,e]));
120
5!;
120
Notice that this example supports the assertion that the number of orderings for any N objects is equal to N!. I avoided listing the complete results for permutations beyond 3 for a reason you will grasp if you list them yourself.
Now we'll move on the the "factor(x)" function. This function causes x to be evaluated in terms of its prime factors. Briefly, all integers are either prime (divisible only by themselves and 1) or composite (composed of primes). Here is an example that will be easier to interpret than the prime factors of 50!:
factor(99);
32 11
factor(101);
101
This example shows that 99 is composite — it equals 3 * 3 * 11. The numbers 3 and 11 are said to be the prime factors of 99. And 101 is prime, so its only factor is itself. There is a function in Maxima called "primep(x)" that tests the primality of x and returns true if x is prime.
One final note. In formal mathematical notation, for two adjacent numbers or variables with a space between them, multiplication is implied, so "32 11" means "3 * 3 * 11". Maxima will normally display equations with implied multiplication, but the user cannot enter equations this way — in user entries, one must always explicitly specify multiplication using "*".Home | | Mathematics | | * Maxima | | Share This Page |