Some stuff from my numerics lectures implemented in C