Next:
Contents
 
Contents
Physics 265: Introduction to Computational Physics
with Tutorials for M
ATLAB
and F
ORTRAN90/95
Gus Hart
Department of Physics and Astronomy
Northern Arizona University
Contents
1. Getting started with M
ATLAB
1.1 Why M
ATLAB
and this tutorial?
1.2 Matlab interface
1.3 Matlab as a calculator
1.4 Variables
1.4.0.1 Built-in variables
1.4.0.2 Workspace
1.4.1 Arrays: vectors and matrices
1.5 Avoiding carpal-tunnel syndrome: Using M-files
1.6 Controlling output
1.7 Using M
ATLAB
's help
2. Plotting
2.1 Two-dimensional plots
2.1.1 Simple 2D plots
2.1.2 Log plots
2.1.3 Other 2-D plots
2.1.3.1 Double y-axis plots
2.1.3.2 Histograms
2.1.3.3 Plots with error bars
2.1.3.4 Parametric plots
2.1.3.5 Scatter Plots
2.1.3.6 Function plots
2.1.3.7 Contour plots
2.2 Three-dimensional plots
3. More on matrices and vectors
3.1 Creating matrices and vectors
and indexing elements
3.2 Manipulating matrices and vectors
3.2.1 Transposing
3.2.2 Element-by-element array operations
3.2.3 Array-array operations
3.2.4 Special arrays
3.2.5 Indexing multidimensional arrays
4. Linear algebra
4.1 Basic operations
4.2 Dot, Cross, Norm, Inverse, Linear solutions
5. Data analysis
5.1 Averages, medians, standard deviation, and all that
5.2 Linear regression
5.3 Fitting with M
ATLAB
6. Real programming
6.1 Loops
6.2 Branching
6.3 Modular programming
6.3.1 Functions
6.3.2 Inline functions
6.3.3 M-file functions
7. Workhorses of Computational Physics
7.1 Why computational physics?
7.2 Root-finding (optimization)
7.2.1 Bisection
7.2.2 Newton's Method and the Secant Method
7.3 Numerical integration
7.4 Numerical derivatives
7.4.1 Basics of ODE's
7.5 Stochastic methods
8. Efficiency matters
9. Advanced graphics
9.1 Fancy plots
9.2 Fine tuning plots
9.3 Animations
10. More ODE's
11. Introduction to Unix and Emacs
11.1 Unix
11.2 Text Editors: emacs, vi, pico, etc.
12. Introduction to F
ORTRAN90/95
About this document ...
Gus Hart 2005-01-28