Monthly Archives: September 2017

Digits of pi and Python generators

Introduction This post was initially motivated by an interesting recent article by Chris Wellons discussing the Blowfish cipher. The Blowfish cipher’s subkeys are initialized with values containing the first 8336 hexadecimal digits of , the idea being that implementers may … Continue reading

Posted in Uncategorized | 7 Comments

Floating-point agreement between MATLAB and C++

Introduction A common development approach in MATLAB is to: Write MATLAB code until it’s unacceptably slow. Replace the slowest code with a C++ implementation called via MATLAB’s MEX interface. Goto step 1. Regression testing the faster MEX implementation against the … Continue reading

Posted in Uncategorized | 3 Comments