Computational and other physics stuff

Computational Physics

Things to remember:
Do not ever use nested loops, be creative and flatten it out if you can;
Do not frequently print out information as you go, it slows things way down;
Watch the sizes of things, variables that are shorts or ints are likely to wrap instead of moving along and matrices can get really big if you are not paying attention.