The Artima Developer Community
Sponsored Link

Java Answers Forum
pi programming!!

1 reply on 1 page. Most recent reply: Apr 8, 2002 2:54 PM by Thomas SMETS

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 1 reply on 1 page
Lee Yong

Posts: 1
Nickname: dragon3832
Registered: Mar, 2002

pi programming!! Posted: Mar 26, 2002 3:39 AM
Reply to this message Reply
Advertisement
hi guys!
I am just wondering
how can I calculate down to two thousand of pi by java programming!!
please your help!!!


Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: pi programming!! Posted: Apr 8, 2002 2:54 PM
Reply to this message Reply
First you should consider the algorythm you wanna use.

You can then use the BigNumbers.
Either java.math.BigDecimal or the java.math.BigInteger.

According to the methods provided on the two classes you will use you can really consider the appropriate algorithme ! This means that to keep the number right (AFAIK), you will have to implement the Tangent / ArcTangente / ... with only these methods.

rgds,

thomas,
tsmets @ lautre . net

Flat View: This topic has 1 reply on 1 page
Topic: How do i prevent [] from appearing in output when reading vector data? Previous Topic   Next Topic Topic: java 3D

Sponsored Links



Google
  Web Artima.com   

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