Computer assignments will be mixed in with the homework assignments. You can use the software of your choice. To work problems that require algebra calculations, Mathematica is often a good choice. There are versions of Mathematica for public use available at the Learning Resource Center in ENS 507 (on sunfire1.ece.utexas.edu) and the Computation Center facilities (which includes UNIX systems). The following Mathematica packages are available with every version of Mathematica:
Algebra | Graphics | ProgrammingExamples |
Calculus | LinearAlgebra | Statistics |
DiscreteMath | Miscellaneous | Utilities |
Examples | NumberTheory | |
Geometry | NumericalMath |
For example, if you wanted to do symbolic summations, you can load the Algebra extensions in Mathematica:
Needs[ "Algebra`Master`" ]
Be sure that the single quote is a backquote (`) here and not an apostrophe ('). Once loaded, a package does not have to be reloaded. To sum for , use
Sum[ a^i, {i, 0, Infinity} ]
which returns .
Tutorials: | http://www.utexas.edu/cc/math/Mathematica/Mathematica.html |
Training: | http://www.utexas.edu/cc/training/scschedule.html |
Support: | math@cc.utexas.edu 475-9400 |
Examples: | /usr/local/packages/mathematica/FrontEnd/SampleNotebooks/*.ma |
Newsgroup: | comp.soft-sys.math.mathematica |
Web page: | http://www.wolfram.com/ |
Unix help: | man mathematica |
It is strongly suggested that you take the short courses that the UT Computation Center will be offering.
If you use Mathematica at the Computer Center, then be sure to read the usage note, ``Mathematical Software on Computation Center Systems,'' which is at:
http://www.utexas.edu/cc/docs/math01.html
Please note that the latter document contains one serious typo, which Documentation has not yet been able to find time to correct. This typo occurs in the discussion of the ``appuser'' script. To run the ``appuser'' script, type the following command at the UNIX shell prompt:
where the delimiter is a back quote (`), not an apostrophe (') or quotation marks (").
Mathematica on Unix
Mathematica manipulates algebraic expressions. It also crunches numbers, performs arbitrary-precision calculations, and supports sound, 2-D/3-D graphics, and animation. Its programming language is similar to Lisp but has many C constructs. It comes with its own word processing notebook interface. Its syntax is a bit unusual in that Mathematica uses square brackets to denote function calls, e.g.
Cos[2*Pi]
thesum = 0; For[ i = 0, i < 100, i++, thesum += i ];
thesum
to the integer 4950.
Lists, vectors, and sets are represented as
vec = {0, 1, 2, 3};
mat = {{0, 1}, {2, 3}};
C = Inverse[Transpose[A . B]]
Running Mathematica
On the Unix machines in the Learning Resource Center, Mathematica is installed in the directory /usr/local/packages/mathematica on brando. The Mathematica executable programs are installed in the /usr/local/bin directory, which should already be on your path. The X windows version of the notebook interface can be run by typing
To evaluate expressions, hit SHIFT-RETURN. If you are not running X windows, then you should run the terminal (tty) interface by typing math. There is an Emacs interface accessible by typing ESC-x load-library math.el in Emacs. Use ESC-x math to start the Mathematica kernel. Use ESC-RETURN to evaluate commands.
Mathematica Documentation
The best on-line documentation about Mathematica is available
from the function browser in the X windows notebook interface.
The Unix manual pages, accessed by typing man math
and
man mathematica
, only provide help about the different ways to
start Mathematica.
The Computation Center has Mathematica manuals available for study
or checkout in the Reference Room, WCH 9.
Technical Support
Support is provided by Mathematical Services,
math@emx.cc.utexas.edu
, 471-3359.