#ifndef PYTHONIC_MATH_FREXP_HPP #define PYTHONIC_MATH_FREXP_HPP #include "pythonic/include/math/frexp.hpp" #include "pythonic/utils/functor.hpp" #include "pythonic/types/tuple.hpp" #include PYTHONIC_NS_BEGIN namespace math { std::tuple frexp(double x) { int exp; double sig = std::frexp(x, &exp); return std::tuple(sig, exp); } } PYTHONIC_NS_END #endif