C++, Matlab, Math