28 Aug
2006
28 Aug
'06
8:48 a.m.
Le dimanche 27 août 2006 à 13:46 +0100, Andy Little a écrit :
Shouldnt this work?:
#include
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