<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 22 May 2013 09:55:57 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Tobias Schlitt's Blog: Randomized Pi calculation]]></title>
      <guid>http://www.phpdeveloper.org/news/7545</guid>
      <link>http://www.phpdeveloper.org/news/7545</link>
      <description><![CDATA[<p>
Since there is no "magic variable" to get a value for Pi in an application, <i>Tobias Schlitt</i> offers up <a href="http://schlitt.info/applications/blog/index.php?/archives/538-Randomized-Pi-calculation.html">the next best thing</a> - his homegrown solution for creating the value (using a randomized variation).
</p>
<blockquote>
I don't know which is the most common way to calculate Pi in computer programs, but from the stochastics book a read for my recent stochastics exam, I have a randomized variation, which is quite cool I think.
</blockquote>
<p>
The code example <a href="http://schlitt.info/applications/blog/index.php?/archives/538-Randomized-Pi-calculation.html">is included</a> along with a bit of explanation for those not familiar with the concepts behind it. It uses two of PHP functions, pow() and mt_rand(), to run through a series of iterations and, using a preset precision value, find the "hits" to finally calculate the value at the end.
</p>]]></description>
      <pubDate>Mon, 02 Apr 2007 10:04:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[WebDevLogs:  PHP: Calculate PI]]></title>
      <guid>http://www.phpdeveloper.org/news/7165</guid>
      <link>http://www.phpdeveloper.org/news/7165</link>
      <description><![CDATA[<p>
<i>Mgccl</i> let us know about <a href="http://www.webdevlogs.com/2007/01/19/php-calculate-pi/">a new bit of functionality</a> he's worked up to calculate a higher precision value of Pi than the built-in PHP function can.
</p>
<blockquote>
I want to release some Benchmark system can be uploaded to any web host and check how good the web hosting is. Pi (Ï') calculations spread widely as one of the most popular CPU benchmark system, that's why I have created a Pi calculator that can get to the accuracy you want. For now, there is still one thing I'm not sure yet, I will explain it after show you the code.
</blockquote>
<p>
The <a href="http://www.webdevlogs.com/2007/01/19/php-calculate-pi/">function is provided</a> (that takes in the precision value you want) and a brief explanation of what it does differently and a <a href="http://us2.php.net/manual/en/function.pi.php#60695">reason why</a> to use it over the built-in function. 
</p>]]></description>
      <pubDate>Thu, 25 Jan 2007 09:29:00 -0600</pubDate>
    </item>
  </channel>
</rss>
