I’ve found that Project Euler is a great way to keep my programming skills sharp and work on interesting problems that are a bit different that what I normally see from day to day.
Case in point:
Until today I’d never heard of an optical delay line or even considered why you might want one. Now I’ve written code that calculates the number of reflections of a laser inside an elliptical cavity. Cool!
Not only did I solve the problem, I opted for a bit of extra credit and decided to plot the light path as it bounces around inside the ellipse and eventually escapes back through the aperture at the top: