Computations in thin film optics