Jump to content

Calculate Pi


Pakku
 Share

Recommended Posts

So concluding we can say that there are many ways to calculate Pi, but our main 'problem' isn't fixed yet: how to we calculate it with endless decimals?

Arjan

Link to comment
Share on other sites

Its really not difficult at all... there are many many infinite sums that yield pi to however many decimals you desire...the only limiting factor is how many significant digits autoit can take. Use java and the BigDecimal class to do it... autoit just isn't the right tool for that job.

http://en.wikipedia.org/wiki/Pi

http://en.wikipedia.org/wiki/Computing_%CF%80

Edited by Wus
Link to comment
Share on other sites

So concluding we can say that there are many ways to calculate Pi, but our main 'problem' isn't fixed yet: how to we calculate it with endless decimals?

Arjan

translate this code to AuotIT and you're done: http://www.codeproject.com/cpp/CRHpi.asp

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

@/dev/null

i don't think so, the help file of autoit says that we can only use 15 digits

@Wus

i agree, but isn't there a way to "hack" autoit so it can do it with more than 15 digits

Arjan

Link to comment
Share on other sites

@/dev/null

i don't think so, the help file of autoit says that we can only use 15 digits

well, before you make such statements, you should check the code I referred to!

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...