const math functions; TODO: constexpr in C++1y