Message from discussion
Digits of Pi (#202)
Path: g2news1.google.com!news1.google.com!news.glorb.com!feed.xsnews.nl!border-1.ams.xsnews.nl!217.112.180.250.MISMATCH!talisker.lacave.net!lacave.net!not-for-mail
From: Harry Kakueki <list.p...@gmail.com>
Newsgroups: comp.lang.ruby
Subject: Re: [QUIZ] Digits of Pi (#202)
Date: Sun, 26 Apr 2009 20:09:24 -0500
Organization: Service de news de lacave.net
Lines: 23
Message-ID: <79621bdb0904261809u2157abc8wb89ca6009148ba23@mail.gmail.com>
References: <89672ce30904241405q692aa797nad4af9ccb9af835c@mail.gmail.com>
NNTP-Posting-Host: bristol.highgroove.com
Content-Type: text/plain; charset=ISO-8859-7
Content-Transfer-Encoding: Quoted-printable
X-Trace: talisker.lacave.net 1240794606 99572 65.111.164.187 (27 Apr 2009 01:10:06 GMT)
X-Complaints-To: abuse@lacave.net
NNTP-Posting-Date: Mon, 27 Apr 2009 01:10:06 +0000 (UTC)
In-Reply-To: <89672ce30904241405q692aa797nad4af9ccb9af835c@mail.gmail.com>
X-Received-From: This message has been automatically forwarded from the
ruby-talk mailing list by a gateway at comp.lang.ruby. If it is SPAM, it did
not originate at comp.lang.ruby. Please report the original sender, and not
us. Thanks! For more details about this gateway, please visit: http://blog.grayproductions.net/categories/the_gateway
X-Mail-Count: 335076
X-Ml-Name: ruby-talk
X-Rubymirror: Yes
X-Ruby-Talk: <79621bdb0904261809u2157abc8wb89ca6009148b...@mail.gmail.com>
>
> This week's quiz is to write a Ruby program that can compute the first
> 100,000 digits of =F0.
>
>
# Is this cheating ? :)
require 'bigdecimal'
require 'bigdecimal/math'
include BigMath
puts PI(100_000)
Harry
--=20
A Look into Japanese Ruby List in English
http://www.kakueki.com/ruby/list.html