#includeusing namespace boost::numeric; interval x(-2.0, 2.0);
#includePackage/library: Boost Interval Libraryusing namespace boost::numeric; double l[2] = {0.0, 0.0}; double u[2] = {1.0, 1.0}; interval_array x(2, l, u); std::vector > intervals = x.intervals();