<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.zenerves.net/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://wiki.zenerves.net/index.php?action=history&amp;feed=atom&amp;title=Pi</id>
		<title>Pi - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.zenerves.net/index.php?action=history&amp;feed=atom&amp;title=Pi"/>
		<link rel="alternate" type="text/html" href="http://wiki.zenerves.net/index.php?title=Pi&amp;action=history"/>
		<updated>2026-08-05T16:57:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://wiki.zenerves.net/index.php?title=Pi&amp;diff=120&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://wiki.zenerves.net/index.php?title=Pi&amp;diff=120&amp;oldid=prev"/>
				<updated>2011-10-14T23:59:11Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:59, 14 October 2011&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://wiki.zenerves.net/index.php?title=Pi&amp;diff=119&amp;oldid=prev</id>
		<title>Lola at 23:22, 14 October 2011</title>
		<link rel="alternate" type="text/html" href="http://wiki.zenerves.net/index.php?title=Pi&amp;diff=119&amp;oldid=prev"/>
				<updated>2011-10-14T23:22:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;from http://alien.slackbook.org/blog/calculating-pi/&lt;br /&gt;
&lt;br /&gt;
Calculating PI&lt;br /&gt;
&lt;br /&gt;
The Internet is full of “one-liners” and if you search a bit, you can find many. A one-liner typically means (a chain of) commands that produce useful results quickly.&lt;br /&gt;
&lt;br /&gt;
I came across a nice one-liner just now. The “binary calculator” or bc is a powerful UNIX tool. Calculating the value of PI with an arbitrary number of decimals (the number of decimals only restricted by the power of your OS, available RAM or internal limitations of the program) goes like this:&lt;br /&gt;
&lt;br /&gt;
    echo “scale=XXXX;4*a(1)” | bc -l&lt;br /&gt;
&lt;br /&gt;
Where “XXXX” is the number of digits you want to calculate. Calling bc with the “-l” parameter causes bc to load it’s mathematical library. The function “a()” is the arctangent function.&lt;br /&gt;
&lt;br /&gt;
Let’s say you need the value of PI with an accuracy of a thousand decimals.&lt;br /&gt;
&lt;br /&gt;
 $ echo &amp;quot;scale=1000;4*a(1)&amp;quot; | bc -l&lt;br /&gt;
 3.141592653589793238462643383279502884197169399375105820974944592307\&lt;br /&gt;
 81640628620899862803482534211706798214808651328230664709384460955058\&lt;br /&gt;
 22317253594081284811174502841027019385211055596446229489549303819644\&lt;br /&gt;
 28810975665933446128475648233786783165271201909145648566923460348610\&lt;br /&gt;
 45432664821339360726024914127372458700660631558817488152092096282925\&lt;br /&gt;
 40917153643678925903600113305305488204665213841469519415116094330572\&lt;br /&gt;
 70365759591953092186117381932611793105118548074462379962749567351885\&lt;br /&gt;
 75272489122793818301194912983367336244065664308602139494639522473719\&lt;br /&gt;
 07021798609437027705392171762931767523846748184676694051320005681271\&lt;br /&gt;
 45263560827785771342757789609173637178721468440901224953430146549585\&lt;br /&gt;
 37105079227968925892354201995611212902196086403441815981362977477130\&lt;br /&gt;
 99605187072113499999983729780499510597317328160963185950244594553469\&lt;br /&gt;
 08302642522308253344685035261931188171010003137838752886587533208381\&lt;br /&gt;
 42061717766914730359825349042875546873115956286388235378759375195778\&lt;br /&gt;
 18577805321712268066130019278766111959092164201988&lt;br /&gt;
&lt;br /&gt;
Isn’t this fun? And on my old dual P2/233MHz server, this took roughly eight seconds.&lt;br /&gt;
&lt;br /&gt;
Now, to compare the usefulness of the Linux platform to good old Solaris, this is what you get on Solaris 8:&lt;br /&gt;
&lt;br /&gt;
 $ echo &amp;quot;scale=1000;4*a(1)&amp;quot; | bc -l&lt;br /&gt;
 scale factor is too large&lt;br /&gt;
 3.14159265358979323844&lt;br /&gt;
&lt;br /&gt;
By Eric Hameleers, or Alien BOB as he is called on various Slackware forums &amp;amp; channels.&lt;br /&gt;
&lt;br /&gt;
http://alien.slackbook.org&lt;br /&gt;
&lt;br /&gt;
Back to [[Howtos]]&lt;br /&gt;
[[Category:Linux]] [[Category:Howtos]]&lt;/div&gt;</summary>
		<author><name>Lola</name></author>	</entry>

	</feed>