The Artima Developer Community
Sponsored Link

Java Buzz Forum
Incompressible Java, PI day

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Kyle Cordes

Posts: 100
Nickname: kylecordes
Registered: Sep, 2003

Kyle Cordes leads a small band of software developers at Oasis Digital Solutions Inc.
Incompressible Java, PI day Posted: Mar 14, 2006 7:03 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Kyle Cordes.
Original Post: Incompressible Java, PI day
Feed Title: Kyle Cordes
Feed URL: http://kylecordes.com/category/java/feed
Feed Description: Kyle Cordes's Software Site - Java category
Latest Java Buzz Posts
Latest Java Buzz Posts by Kyle Cordes
Latest Posts From Kyle Cordes

Advertisement
Weiqi Gao reminded me that today is “PI Day”; that along wouldn’t warrant a post here, but the Java snippet for estimating the value of PI rather inefficiently, did: [weiqi@gao] $ cat PI.java public class PI { public static void main(String[] args) { double sum = 0.0d; for (int i = 1; i < 64000; i++) { sum += 6.0/(i*i); } System.out.println(Math.sqrt(sum)); } } [weiqi@gao] $ [...]

Read: Incompressible Java, PI day

Topic: [Mar 4, 2006 00:42 PST] 14 Links Previous Topic   Next Topic Topic: Over GPLed

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use