Some code in numerical analysis in C, C++ and Python