[Boost-bugs] [Boost C++ Libraries] #12952: Interval arithmetic: fmod produces wrong results

Subject: [Boost-bugs] [Boost C++ Libraries] #12952: Interval arithmetic: fmod produces wrong results
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-06 10:57:39


#12952: Interval arithmetic: fmod produces wrong results
-------------------------------------+----------------------
 Reporter: stripf@… | Owner: bgubenko
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interval
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+----------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12952>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-04-06 11:00:29 UTC