C programming for physicists


The C programming language is introduced through a set of worked examples. An introduction to programming in the Linux environment is given, together with design tools such as flowcharts and pseudocode. Following the initial discussion of programming concepts, the majority of the ANSI C syntax and build in commands are demonstrated. The course concludes with a more complicated example of histogramming data from a particle physics simulation.

The course was written for the Linux operating system but can be adapted for other operating systems. The FORTRAN parts of this course were tested with the gfortran compiler.

William H. Bell
Last modified: Fri Aug 10 13:55:04 BST 2015