[Boost-bugs] [Boost C++ Libraries] #7779: uniform_on_sphere returns -nan after many correct realizations when using single-precision floats

Subject: [Boost-bugs] [Boost C++ Libraries] #7779: uniform_on_sphere returns -nan after many correct realizations when using single-precision floats
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-10 08:14:11


#7779: uniform_on_sphere returns -nan after many correct realizations when using
single-precision floats
--------------------------------------------------+-------------------------
 Reporter: Robert Gantner <rngantner@…> | Owner: no-maintainer
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: random
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 When simulating random vectors using the boost::uniform_on_sphere
 distribution with single-precision floating-point numbers, certain
 realizations are a vector of -nan. For the seed used in the included
 program, this happens at realization 3802480. The realizations before and
 after the wrong one are correct (i.e. lie on the unit circle).

 I have only found this to happen in two dimensions, although it happens
 for many different seed values. I have not encountered the problem when
 using doubles.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7779>
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-02-16 18:50:11 UTC