Boost logo

Boost Users :

From: Guillaume Melquiond (guillaume.melquiond_at_[hidden])
Date: 2006-08-28 04:48:33


Le dimanche 27 août 2006 à 13:46 +0100, Andy Little a écrit :
> Shouldnt this work?:
>
> #include <boost/numeric/interval.hpp>
>
> int main()
> {
> boost::numeric::interval<double> v(.5);
> cos(v);
> }

With the default interval policies, transcendental functions are not
enabled since they usually do not provide the inclusion property of
interval arithmetic. This is why you get a compile-time error.

For specific policies, you can take a look at the find_root.cpp and
transc.cpp examples. The first one provides non-guaranteed interval
functions by relying on the standard library. The second one provides
guaranteed interval functions by relying on an external library.

Best regards,

Guillaume


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net