Simple c++11 approximation (math) framework