Re: [Boost-bugs] [Boost C++ Libraries] #5095: incorrect results from hypergeometric pdf

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5095: incorrect results from hypergeometric pdf
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-19 17:26:05


#5095: incorrect results from hypergeometric pdf
------------------------------------------+---------------------------------
  Reporter: David Koes <dkoes@…> | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: math
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------+---------------------------------

Comment (by David Koes <dkoes@…>):

 As a workaround, if the lgamma backup version of
 hypergeometric_pdf_lanczos_imp is used instead, correct results are
 obtained.

 In
 /usr/local/include/boost/math/distributions/detail/hypergeometric_pdf.hpp:
 414c414
 < result = detail::hypergeometric_pdf_lanczos_imp(value_type(), x,
 r, n, N, evaluation_type(), forwarding_policy());
 ---
> result = detail::hypergeometric_pdf_lanczos_imp(value_type(), x,
 r, n, N, lanczos::undefined_lanczos(), forwarding_policy());

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5095#comment:1>
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:05 UTC