|
Boost : |
From: Jeff Garland (jeff_at_[hidden])
Date: 2006-12-07 16:38:04
Franck Stauffer wrote:
> On Dec 7, 2006, at 9:29 PM, Matthias Schabel wrote:
>
>> As far as I can see, precision needs to be the same type as the
>> return type since it represents
>> uncertainty in the latter. That is, the range of possible return
>> values would be [result - n*error,
>> result + n*error]. Do you have a case in mind where this isn't true?
>
> This is always true when you can define such an interval, which is
> not the case for an integral of a complex valued function ( no "<" on
> complex) .
Isn't this Boost.Interval?
http://www.boost.org/libs/numeric/interval/doc/interval.htm
Oh, and this library is in the TR2 pipeline as well...
Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk