Opened 6 years ago

#12952 new Bugs

Interval arithmetic: fmod produces wrong results

Reported by: stripf@… Owned by: Boris Gubenko
Milestone: To Be Determined Component: interval
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Hi,

I found a potential bug within the fmod calculation of the boost interval arithmetic library.

For me the result of fmod([3, 18], [5 5]) is [3, 18] but the correct result should be [0 5].

The function is located in /numeric/interval/arith2.hpp . I checked the boost repository and the function did not change the past years.

I'll try to fix it at my own. You can contact me to get my implementation...

Kind regards,

Timo Stripf

Change History (0)

Note: See TracTickets for help on using tickets.