Chad K. Park's Blog

4, June 2010

Easy as pi()

Filed under: Uncategorized — Tags: , , — chadkpark @ 2:43 am

Calculate pi to 5000 decimal places? Such linux fun cannot be had more easily.

time echo “scale=5000; 4*a(1)” | bc -l -q
3.141……

The stats on my Inspiron 1525 running Debian (amd64):

real 0m42.050s
user 0m41.527s
sys 0m0.020s

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Denise Minger

Rescuing good health from bad science.

counterclockwise

because I'm holding a thermal detonator

Grow family. Grow!

growth of our family

Bucket List Publications

Indulge- Travel, Adventure, & New Experiences

%d bloggers like this: