Physics 559, Special Topics = "Advanced Computational Physics"
This material can be found online at URL
- Choosing an independent project
Homework / Programming assignments
In order to submit your work, use the
"dropbox" facility for this course at
When you submit a program, you should
give it a name in the following manner:
each assignment will involve writing a function
with some specific name -- for example: simple_toss.m.
You will use that name for all your development
When you want to submit your work,
please prepend to the name your initials, in
lower-case letters, and an underscore character.
Thus, a student with name "John Q. Public"
would submit a file called
- Week 1:
- Pseudocode for "motion of a ball" program
(due in class, Wednesday, Nov 28)
- Week 2:
- Week 3:
- Week 4:
- Week 5:
- Week 6:
- Week 7:
- Week 8:
- Week 11:
- The final project
(due Thursday, Feb 21 at 5 PM)
These may help you as you work on the assignments in this course.
- guess.m plays a guessing
game with the user
- A series of 3 very short and simple functions
which illustrate the basic form of a MATLAB function.
illustrates the dangers of using a simple algorithm
to integrate the motion of objects due to gravity --
when those objects grow too close.
employs Euler's method and Newton's Law of Cooling
to compute the temperature of an object as a function of time.
You might prefer to look at the
pretty HTML version of cool_off.m
instead of the MATLAB program itself.
shows how to define and use two functions within
a single MATLAB source code file.
It uses the Sieve of Eratosthenes to look for
prime numbers within some specified range.
The HTML version
might look better in a browser.
is an outline of the structure one might use
for the solar system program. It is by no
For more information
SPSP 317: Introduction to Computational Physics
contains materials for my version of the
introductory course in computational physics.
You will find links to many programming
resources there, and examples of programs
in the Scilab language, which is very similar
- There are books on reserve in the library which
may help you with this course.
- Numerical Methods for Engineers,
by Chapra and Canale, fifth edition.
A copy of the second edition of this
book is on the bookshelf in the PAC.
- Applied Numerical Methods with MATLAB for
Engineers and Scientists,
This page maintained by Michael Richmond.
Last modified Feb 2, 2012.