Programs from Computational Physics, written in python. The reference book: Computational Physics by Mark Newman.
List of Codes:
- Another ball droppped from a tower
- Altitude of a satellite
- Quantum potential step
- Prime numbers
- Density plots for STM measurements
- An unstable calculation
- The power of a quasar
- Quantum uncertainty in the harmonic oscillator
- Interpolation of a quasar spectrum
- Brownian motion
- Gaussian elimination with pivoting
- Finding eigenvalues
- Lagrange point
- The double pendulum
Topics:
- Integrals over infinite ranges
- Integration methods
(a) Piecewise constant integration (the “rectangle rule")
(b) Piecewise linear integration (the “trapezoidal rule")
(c) Simpson’s Rule