P609 Computational Physics

Department of Physics, Indiana University

Spring, 2016

go to lecture notes go to homework assignments

Meets: Tuesday and Thursday, 1:00 p.m. to 2:15 p.m. in

**Note that this is a cluster of
Apple computers in the physics building near the Physics Forum
commonly known as the Astronomy/Physics
cluster. Please check to see whether you can log in before coming to class.
**

For help with the issues specific to the Astronomy/Physics Cluster in which we meet, send email to it4phys@indiana.edu. This would include issues like you cannot log in, or other problems that only a system administrator can solve.

For help with general computer issues, the Indiana University Knowedge Base is very useful.

These courses (P410/P609) in computer applications may be taken by undergraduates or graduate students. Click to examine the syllabus for the course.

The textbook *An Introduction to Computer Simulation Methods---
Applications to Physical Systems*

Notes for Lecture 1 - Introduction (January 12).

Here are some on-line tutorials for AWK:

An AWK Primer

Awk - A Tutorial and Introduction - by Bruce Barnett

Here is the official manual for the GNU version of AWK:

GAWK: Effective AWK Programm: A User's Guide for GNU Awk by Arnold D. Robbins

Some information on choosing a shell:

UNIX shell differences and how to change your shell

Top Ten
Reasons not to use the C shell

Notes for Lecture 3 - Remote access, aliases, AWK, axis, Introduction to Euler Method (January 19).

Notes on Remote Access to Cluster and Files.Axis Documentation (PDF).

Notes for Lecture 4 - Error Analysis for the Euler Method, Shell Scripts (January 21).

A pdf file with discussion of the error analysis of Euler method (PDF).Notes for Lecture 11 - Introduction to Mathematica (February 16).

Hands-on Start to Mathematica

How-to Mathematica tutorials

Join /the Mathematica Community

Notes for Lecture 12 - Biased Estimators, Bias Reduction and the Jackknife Method (February 18).

Notes for Lecture 15 - AHO, Finding Superstable Trajectories, GSL (March 1).

Notes for Lecture 18 - Higher Dimensional Integrals, Testing Hit or Miss Method, Aver (March 10).

Notes for Lecture 21- Previous Homework Assignment, Metropolis Method (March 29).

Notes for Lecture 23- Pseudorandom Numbers Generators, Serial Correlation Tests (April 5).

Notes for Lecture 24 - Feedback Shift Register Random Number Generator, SPRNG (April 7).

Bazavov NotesMonte Carlo simulations: Hidden errors from "good" random number generators

Notes for Lecture 25 - Fitting Data, Chi-square Distribution (April 12).

Notes for Lecture 27 - Polyfit (repeated), Verification of Error Estimates (April 19).

Notes for Lecture 28 - Non-linear Data Fitting, Introduction to Parallel Computing (April 21).

Notes for Lectures 29-30 - Introduction to Parallel Computing and CUDA (April 26-28).

The History of SupercomputersIntroduction to GPU Programming

Notes from Fall 2014 Lectures

Notes for Lecture 1 - Introduction (August 26).

Supplementary Notes for Lectures 2,3 - On-line Help and Unix Tutorials.

Here are some on-line tutorials for AWK:

An AWK Primer

Awk - A Tutorial and Introduction - by Bruce Barnett

Some information on choosing a shell:

UNIX shell differences and how to change your shell

Top Ten
Reasons not to use the C shell

Axis Documentation (PDF).

Notes for Lecture 4 - Error Analysis for the Euler Method, Shell Scripts (September 4).

A pdf file with discussion of the error analysis of Euler method (PDF).
Hands-on Start to Mathematica

How-to Mathematica tutorials

Join /the Mathematica Community

Notes for Lecture 12 - Introduction to Mathematica (continued) (October 2).

Notes for Lecture 14 - Jackknife Error, Introduction to Chaos and Logistic Map (October 14).

Notes for Lecture 15 - Chaos and Logistic Map, Finding Bifurcation Points (October 16).

Notes for Lecture 16 - Finding Superstable Trajectories (October 21).

Why you might not want to use Numerical RecipiesNotes for Lecture 17 - AHO, Numerical Integration in One Dimension (October 23).

Notes for Lecture 19 - Higher Dimensional Integrals, Testing Hit or Miss Method, Aver (October 30).

Notes for Lecture 23 - Pseudorandom Numbers Generators, Serial Correlation Tests (November 13).

Notes for Lecture 24 - Feedback Shift Register Random Number Generator, SPRNG (November 13).

Monte Carlo simulations: Hidden errors from "good" random number generatorsNotes for Lecture 25 - Introduction to GPU Programming (November 18).

Notes for Lecture 26 - Fitting Data, Chi-square Distribution (November 20).

go to top of page go to homework assignmentsNotes from Fall 2013 Lectures

Notes for Lecture 1 - Introduction (August 27).

Supplementary Notes for Lectures 2,3 - On-line Help and Unix Tutorials.

Here are some on-line tutorials for AWK:

An AWK Primer

Awk - A Tutorial and Introduction - by Bruce Barnett

Some information on choosing a shell:

UNIX shell differences and how to change your shell

Top Ten
Reasons not to use the C shell

Notes for Lecture 4 - Error Analysis for the Euler Method, Shell Scripts (September 5).

Notes for Lecture 9 - Root Finding, Oscillatory Motion (September 24).

Notes for Lecture 11 - Higher Order Algorithms, Introduction to Mathematica (October 1).

Hands-on Start to Mathematica

How-to Mathematica tutorials

Join the Mathematica Community

Notes for Lecture 12 - Introduction to Mathematica, Random Walks and Biased Estimators (October 3).

Notes for Lecture 15 - Chaos and Logistic Map, Finding Bifurcation Points (October 15).

Notes for Lecture 16 - AHO, Finding Superstable Trajectories (October 22).

Why you might not want to use Numerical RecipiesNotes for Lecture 20 - Sample Mean Method, Inverse Transform Method, Box-Muller Method (October 31).

Notes for Lecture 21 - Correlations, Metropolis Method, Autocorrelations (November 5).

Notes for Lecture 23 - Serial Correlation Tests, Autocorrelations of PRNG (November 12).

Monte Carlo simulations: Hidden errors from "good" random number generatorsNotes for Lecture 25 - Chi-square Distribution (November 19).

go to top of page go to homework assignmentsNotes from Spring 2013 Lectures

Notes for Lecture 1 - Introduction (January 7).

Supplementary Notes for Lectures 2,3 - On-line Help and Unix Tutorials.

An AWK Primer

Awk - A Tutorial and Introduction - by Bruce Barnett

UNIX shell differences and how to change your shell

Top Ten
Reasons not to use the C shell

Notes for Lecture 4 - Error Analysis for the Euler Method, Shell Scripts (January 16).

Notes for Lecture 9 - Root Finding, Oscillatory Motion (February 6).

Notes for Lecture 11 - Higher Order Algorithms, Introduction to Mathematica (February 18).

Notes for Lecture 14 - Application of the Jackknife Method, Hist, Blockerr (February 25).

Notes for Lecture 16 - Chaos and Logistic Map (March 1).

Why you might not want to use Numerical RecipiesNotes for Lecture 18 - Lyapunov Exponent, Numerical Integration in One Dimension (March 6).

Notes for Lecture 19 - Simpson's Rule Rederived, Hit or Miss Method, Sample Mean Method (March 18).

Notes for Lecture 20 - Higher Dimensional Integrals, Testing Hit or Miss Method, Aver (March 20).

Notes for Lecture 21 - Sample Mean Method, Inverse Transform Method, Box-Muller Method (March 25).

Notes for Lecture 22 - Correlations, Metropolis Method, Autocorrelations (March 27).

Notes for Lecture 25 - Fitting Data, Chi-squared Distribution (April 8).

Notes for Lecture 27 - Verification of Error Estimates, Non-linear Data Fitting (April 15).

Notes for Lecture 28 - Non-linear Data Fitting, Introduction to Parallel Computing (April 17).

go to top of page go to homework assignmentsNotes from 2012 Lectures

Notes for Lecture 1 - Introduction (January 10).

Supplementary Notes for Lectures 2,3 - On-line Help and Unix Tutorials.

An AWK Primer

Awk - A Tutorial and Introduction - by Bruce Barnett

UNIX shell differences and how to change your shell

Top Ten
Reasons not to use the C shell

Notes for Lecture 4 - Error Analysis for the Euler Method, Shell Scripts (January 19).

Notes for Lecture 7 - Body Falling in Position Dependent Potential (continued) (January 31).

Notes for Lecture 12 - Random Walks and Biased Estimators Using Mathematica (February 16).

Notes for Lecture 15 - Chaos and Logistic Map (February 28).

Notes for Lecture 16 - Finding Bifurcation Points and Superstable Trajectories (March 1).

Why you might not want to use Numerical RecipiesNotes for Lecture 18 - Numerical Integration in One Dimension (March 8).

Notes for Lecture 19 - Simpson's Rule Rederived, Hit or Miss Method, Sample Mean Method (March 20).

Notes for Lecture 22 - Inverse Tranform Method, Box-Muller Method (March 29).

Notes for Lecture 23 - Metropolis Algorithm, Autocorrelations (April 3).

Notes for Lecture 24 - Pseudorandom Numbers Generators, Serial Correlation Tests (April 5).

Notes for Lecture 26 - SPRNG, Fitting Data, Chi-squared Distribution (April 12).

Notes for Lecture 27 - Homework Revisited, Chi-squared Distribution (April 17).

Notes for Lecture 28 - More on Chi-squared Distribution (April 19).

go to top of page go to homework assignments

Homework Assignments Will Appear Below

Homework Assignment 1 (Due Thursday, January 28)

Homework Assignment 2 (Due Thursday, February 11, 2016) .

Homework Assignment 3 (Due Thursday, February 25, 2016) .

Homework Assignment 4 (Due Thursday, March 10, 2016) .

Homework Assignment 5 (Due Tuesday, April 12, 2016) .

go to top of page go to lecture notes

Homework Assignments From Fall 2014

The first homework is due on Thursday, September 11. It involves awk and axis, if you wish to produce your graph using axis. You are welcome to use a different program as long as you can make the plots as requested.

Homework Assignment 2 (Due Tuesday, September 23, 2014) .

Homework Assignment 3 (Due Thursday, October 9, 2014) .

Homework Assignment 4 (Due Thursday, October 30, 2014) .

Homework Assignment 5 (Due Thursday, November 20, 2014) .

go to top of page go to lecture notes

Homework Assignments From Fall 2013

The first homework is due on Thursday, September 12. It involves awk and axis, if you wish to produce your graph using axis. You are welcome to use a different program as long as you can make the plots as requested.

Homework Assignment 2 (Due Tuesday, October 1, 2013) .

Homework Assignment 3 (Due Tuesday, October 15, 2013) .

Homework Assignment 4 (Due Tuesday, October 29, 2013) .

Homework Assignment 5 (Due Tuesday, November 14, 2013) .

Homework Assignment 6 (Due Thursday, December 5, 2013) .

Homework Assignments From Spring 2013

The first exercise is due on Wednesday, January 23. It involves awk and axis, if you wish to produce your graph that way. You are welcome to use a different program as long as you can make the plots as requested.

Homework Assignment 1 (Due Wednesday, February 6, 2013) .

Homework Assignment 2 (Due Wednesday, February 20, 2013) .

Homework Assignment 3 (Due Wednesday, February 27, 2013) .

Homework Assignment 4 (Due Wednesday, April 3, 2013) .

Homework Assignment 5 (Due Wednesday, April 17, 2013) .

go to top of page go to lecture notesHomework Assignments From 2012

The first exercise is due on Thursday, January 19. It involves awk and axis which we will discuss on Tuesday.

Homework Assignment 1 (Due Tuesday, February 7, 2012) .

Homework Assignment 2 (Due Tuesday, February 21, 2012) .

Homework Assignment 3 (Due Tuesday, March 20, 2012) .

Homework Assignment 4 (Due Thursday, April 5, 2012) .

Homework Assignment 5 (Due Thursday, April 19, 2012) .

go to top of page go to lecture notes