This is a collection of work I did for IB Scientific Computing in the Natural Sciences Tripos last year. The sessions go up in difficulty and involve the following tasks:
- Euclidean algorithm for GCD
- Series expansion of sin(x)
- Monte Carlo estimation of ln(2)
- Bisection root-finding in polynomials
- Planatary motion simulation
- 1D collision simulation
The code is released under a MIT license. Not that these are particularly useful to anyone anyway...