C/C++ numeric utilities