
-----------------------------------
Mark_Tran
Mon Apr 17, 2006 12:45 pm

Is there any way to get Turing to calculate and display:
-----------------------------------
Is there any way to get Turing to calculate and display the first 1000 digits of Pi ?  If there is can someone please post the code for it?  That would be awesome :P

-----------------------------------
cool dude
Mon Apr 17, 2006 1:26 pm


-----------------------------------
pi is infinite and turing doesn't have a built in function pi. if u wanted to u could make a constant and write out all the first 1000 numbers that pi has and store it in that constant so then u could just call the constant instead of typing out all those numbers. but i don't think turing can even handle that big of a number

-----------------------------------
Andy
Mon Apr 17, 2006 1:27 pm


-----------------------------------
the simplest way is to use the Gregory approach.. but that'll take you a very long time to calculate 1000 digits. if all you want to do is to display it, then you can simply read the value off of [url=http://3.141592653589793238462643383279502884197169399375105820974944592.com/index1.html]here

-----------------------------------
Delos
Mon Apr 17, 2006 4:28 pm


-----------------------------------
pi is infinite and turing doesn't have a built in function pi. 


put Math.PI


Goes up to about 48 digits.

-----------------------------------
[Gandalf]
Mon Apr 17, 2006 4:33 pm


-----------------------------------
Heh, that's an amazing site address.

pi is infinite and turing doesn't have a built in function pi. if u wanted to u could make a constant
Yeah, Turing doesn't have a function for pi, but it does have a constant for it:
put Math.PI
