#include <kv/doubleintegral.hpp>

struct Func {
	template <class T> T operator() (const T& x, const T& y) {
		return 1 / (x * x + 2 * y * y + 1);
	}
};

typedef kv::interval<double> itv;

int main()
{
	std::cout.precision(17);

	std::cout << kv::doubleintegral(Func(), itv(-1), itv(1), itv(-1), itv(1), 8, 20) << "\n";
}
