Boost C++ Libraries: Ticket #5493: Replaces literal pi by boost::math::constants::pi<>() https://svn.boost.org/trac10/ticket/5493 <p> This patch replaces the literal pi in gamma, normal and Cauchy distributions by the math::constants defined in Boost. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5493 Trac 1.4.3 Júlio Hoffimann <julio.hoffimann@…> Thu, 21 Apr 2011 00:18:08 GMT attachment set https://svn.boost.org/trac10/ticket/5493 https://svn.boost.org/trac10/ticket/5493 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">cauchy_dist.patch</span> </li> </ul> Ticket Júlio Hoffimann <julio.hoffimann@…> Thu, 21 Apr 2011 00:18:23 GMT attachment set https://svn.boost.org/trac10/ticket/5493 https://svn.boost.org/trac10/ticket/5493 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">gamma_dist.patch</span> </li> </ul> Ticket Júlio Hoffimann <julio.hoffimann@…> Thu, 21 Apr 2011 00:18:36 GMT attachment set https://svn.boost.org/trac10/ticket/5493 https://svn.boost.org/trac10/ticket/5493 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">normal_dist.patch</span> </li> </ul> Ticket Bryce Adelstein Lelbach Thu, 21 Apr 2011 00:49:22 GMT owner changed; cc set https://svn.boost.org/trac10/ticket/5493#comment:1 https://svn.boost.org/trac10/ticket/5493#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">blelbach@…</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">John Maddock</span> </li> </ul> Ticket Bryce Adelstein Lelbach Thu, 21 Apr 2011 00:50:39 GMT owner changed https://svn.boost.org/trac10/ticket/5493#comment:2 https://svn.boost.org/trac10/ticket/5493#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Steven Watanabe</span> </li> </ul> Ticket John Maddock Mon, 25 Apr 2011 08:44:30 GMT <link>https://svn.boost.org/trac10/ticket/5493#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5493#comment:3</guid> <description> <p> I wonder if this really makes any difference? The precision of the value of pi in a random number generator is presumably not so important? </p> </description> <category>Ticket</category> </item> <item> <author>Júlio Hoffimann <julio.hoffimann@…></author> <pubDate>Mon, 25 Apr 2011 15:07:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5493#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5493#comment:4</guid> <description> <p> Hi John, </p> <p> This is the reason i tagged the patch as "cosmetic". Use literal values, it's not good practice as we know. </p> <p> Regards, Júlio. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Mon, 25 Apr 2011 15:35:14 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5493#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5493#comment:5</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/5493#comment:3" title="Comment 3">johnmaddock</a>: </p> <blockquote class="citation"> <p> I wonder if this really makes any difference? The precision of the value of pi in a random number generator is presumably not so important? </p> </blockquote> <p> The Random library only works with float, double, and long double anyway. I had to make some adjustments to test with NTL and I didn't keep those changes. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Thu, 13 Mar 2014 00:33:30 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5493#comment:6 https://svn.boost.org/trac10/ticket/5493#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> Ticket