Basic numerical methods with applications in physics