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 (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:
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
SymbolicSum[ a^i, {i, 0, Infinity} ]
which returns .
Getting Started: http://ssc.utexas.edu/consulting/tutorials/mathematica/index.html
Support: math@ssc.utexas.edu.
Example tutorial as a Mathematica notebook:
http://ssc.utexas.edu/consulting/tutorials/mathematica/notebooks/tut.nb
Web page: http://www.wolfram.com/
Mathematica is available in the Student Microcomputer Facility in room 212 of the Flawn Academic Center (FAC) on both Windows terminals and Unix terminals. Mathematica should also be available in the computer clusters in FAC 101B (also a classroom) and FAC 300.
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.
Mathematica manuals may be available for checkout in computer
clusters in which Mathematica is installed.
Technical Support
Division of Statistics and Scientific Computing,
math@ssc.utexas.edu.