Questions tagged [boost-interval]

Bost Interval Library is intended to help manipulating mathematical intervals

An interval is a pair of numbers which represents all the numbers between these two (intervals are considered closed so the bounds are included).

There are at least two reasons a user would like to use this library. The obvious one is when the user has to compute with intervals. One example is when input data have some builtin imprecision: instead of a number, an input variable can be passed as an interval. Another example application is to solve equations, by bisecting an interval until the interval width is small enough. A third example application is in computer graphics, where computations with boxes, segments or rays can be reduced to computations with points via intervals.

Further details: http://www.boost.org/doc/libs/1_58_0/libs/numeric/interval/doc/interval.htm

2 questions
4
votes
1 answer

C++ Boost Interval and cos

I have trouble using the Interval library from Boost #include void test() { typedef boost::numeric::interval Interval; Interval i1(1.0, 2.0); auto i2 = cos(i1); } I get the following compilation…
Petter
  • 37,121
  • 7
  • 47
  • 62
1
vote
1 answer

boost::icl::interval and boost::numeric::interval is there an adaption layer available?

I've been using boost::numeric::interval everywhere in my code. Now I've started using the boost interval container library. Does there exist an adaption header so I can put boost::numeric::interval intervals into boost::icl containers? I've tried…
bradgonesurfing
  • 30,949
  • 17
  • 114
  • 217