I have trouble using the Interval library from Boost
#include <boost/numeric/interval.hpp>
void test()
{
typedef boost::numeric::interval<double> Interval;
Interval i1(1.0, 2.0);
auto i2 = cos(i1);
}
I get the following compilation errors:
transc.hpp(73): error C2039: 'cos_down' : is not a member of 'boost::numeric::interval_lib::rounded_math<double>'
transc.hpp(73): error C2039: 'cos_up' : is not a member of 'boost::numeric::interval_lib::rounded_math<double>'
transc.hpp(75): error C2039: 'cos_up' : is not a member of 'boost::numeric::interval_lib::rounded_math<double>'
I have tried several combinations of interval_lib::policies
but have not been able to compile an example. I am not after very high precision. What I want is basically that adding two intervals is equivalent of adding two double
s.