gave up and used tables. (courtesy of http://whatthecommit.com/)
Programming the flux capacitor (courtesy of http://whatthecommit.com/)