Computational Physics: Some basics of high level programming with examples in C++, Perl and Python

Overview

Introductory lecture material

Programming

Basic numerical methods

Methods and Algorithms
Molecular Dynamics
Hartree-Fock method
Density functional theory
Monte Carlo methods
Quantum Monte Carlo methods
Lanczos method
Perturbation theory





  • Programming in C++ and Perl
        .emacs file
        Homework 2 solution
        Homework 3 solution
        Homework 4 solution
  • Programming in Python and SciPy package
        Homework 5 solution
        Homework 6 solution
        Example of using f2py to generate Mandelbrot set
  • Source code for this part of lectures

  • Perl scipt for data-file manipulation, plotting, integration,...
  • Some Python scripts
  • All source codes