I've never written anything quite this... uh... math-intensive before. It's not especially math-intensive in play -- there's a table loo…