← Projects

Delete pi.py

302f0974b1c97f299924fe113ff360cdb8ed67c3 · ovidiucs · Jul 14, 2013 23:51

−10 · 1 file changed

  • Numbers/pi.py +0 −10
diff --git a/Numbers/pi.py b/Numbers/pi.py
deleted file mode 100644
index 5594801..0000000
--- a/Numbers/pi.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# Find PI to the Nth Digit
-
-from math import *
-
-digits = raw_input('Enter number of digits to round PI to: ')
-
-# print ('{0:.%df}' % min(20, int(digits))).format(math.pi) # nested string formatting
-
-# calculate pi using Machin-like Formula
-print ('{0:.%df}' % min(30, int(digits))).format(4 * (4 * atan(1.0/5.0) - atan(1.0/239.0)))