New Posts  All Forums:Forum Nav:

How to calculate pi?

post #1 of 35
Thread Starter 
I need a basic overview on how to calculate pi in computers. This means avoiding fractions at all costs.
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
post #2 of 35
22/7

This might help?

http://en.wikipedia.org/wiki/Pi
quad core madness
(14 items)
 
  
CPUMotherboardGraphicsRAM
Lapped Intel Core 2 Quad - Q6600 G0 Stepping Asus P5K Deluxe WiFi ATi Sapphire HD 6950 2GB Unlocked 8GB G.Skill Pi Black DDR2-800 PC2-6400 
Hard DriveOptical DriveOSMonitor
60GB OCZ Solid 2 SSD Samsung SATA 18X DVD Burner Windows 7 Ultimate x64 Dell 3007WFP-HC + 2x 2007FP in PLP 
KeyboardPowerCaseMouse
Ducky Shine Blue, MX Red Corsair HX620 620W Lian Li V1000 Plus Black Razer Mamba 2012 
Mouse PadAudio
XTrack Ripper XL Creative X-Fi XtremeMusic 
  hide details  
Reply
quad core madness
(14 items)
 
  
CPUMotherboardGraphicsRAM
Lapped Intel Core 2 Quad - Q6600 G0 Stepping Asus P5K Deluxe WiFi ATi Sapphire HD 6950 2GB Unlocked 8GB G.Skill Pi Black DDR2-800 PC2-6400 
Hard DriveOptical DriveOSMonitor
60GB OCZ Solid 2 SSD Samsung SATA 18X DVD Burner Windows 7 Ultimate x64 Dell 3007WFP-HC + 2x 2007FP in PLP 
KeyboardPowerCaseMouse
Ducky Shine Blue, MX Red Corsair HX620 620W Lian Li V1000 Plus Black Razer Mamba 2012 
Mouse PadAudio
XTrack Ripper XL Creative X-Fi XtremeMusic 
  hide details  
Reply
post #3 of 35
What do you mean avoiding fractions? Pi is not a whole number, you must use floating point!
    
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3.24GHz w/ 1.36v (L724A760) Gigabyte P35-DS3R rev 1.0 EVGA GTX 285 1GB + ? BIOS (720c/1512s/1377m) 8GB G.Skill PQ @ 1000MHz 5-5-5-15 
Hard DriveOptical DriveOSMonitor
2x320GB 7200.11 Raid0 + 750GB 7200.11 for Storage Samsung SH-S203B Windows 7 Pro x64 Samsung T260HD 1920x1200 + Samsung 226BW 1680x1050 
KeyboardPowerCaseMouse
Saitek Eclipse II PC Power & Cooling Silencer 750W Antec Nine Hundred Razer DeathAdder 
Mouse Pad
Razer Destructor 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
Q6600 G0 @ 3.24GHz w/ 1.36v (L724A760) Gigabyte P35-DS3R rev 1.0 EVGA GTX 285 1GB + ? BIOS (720c/1512s/1377m) 8GB G.Skill PQ @ 1000MHz 5-5-5-15 
Hard DriveOptical DriveOSMonitor
2x320GB 7200.11 Raid0 + 750GB 7200.11 for Storage Samsung SH-S203B Windows 7 Pro x64 Samsung T260HD 1920x1200 + Samsung 226BW 1680x1050 
KeyboardPowerCaseMouse
Saitek Eclipse II PC Power & Cooling Silencer 750W Antec Nine Hundred Razer DeathAdder 
Mouse Pad
Razer Destructor 
  hide details  
Reply
post #4 of 35
Thread Starter 
Quote:
Originally Posted by Muhahahaha View Post
What do you mean avoiding fractions? Pi is not a whole number, you must use floating point!
I don't mind floating points (although id try to avoid it) but fractions are not easily computable.

Quote:
22/7

This might help?

http://en.wikipedia.org/wiki/Pi
Been there done that. Also abandoned it to.
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
post #5 of 35
It would be fairly hard to manually find pi without the use of fractions since pi is based on fractions and roots
AMD Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom 9950 BE @ 2.61 GHz Asus Crosshair II Formula BFG GTX 260 Max Core 55 OC Backup RAM :X 
Hard DriveOSKeyboardPower
2x Seagate Barracuda (RAID) Window 7 x64 Logitech G15 Corsair HX1000 
CaseMouse
Antec Twelve Hundred Razer Death Adder 
  hide details  
Reply
AMD Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom 9950 BE @ 2.61 GHz Asus Crosshair II Formula BFG GTX 260 Max Core 55 OC Backup RAM :X 
Hard DriveOSKeyboardPower
2x Seagate Barracuda (RAID) Window 7 x64 Logitech G15 Corsair HX1000 
CaseMouse
Antec Twelve Hundred Razer Death Adder 
  hide details  
Reply
post #6 of 35
3.141592653589793238462643383279502884197169399375 10582097494459230781640628620899862803482534211706 79821480865132823066470938446095505822317253594081 28481117450284102701938521105559644622948954930381 96442881097566593344612847564823378678316527120190 91456485669234603486104543266482133936072602491412 73724587006606315588174881520920962829254091715364 36789259036001133053054882046652138414695194151160 9
FX Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-8320e Gigabyte GA-970A-UD3P Sapphire R9 380 4GB 2x8GB Crucial Ballistix DDR3-1600 
Hard DriveHard DriveOptical DriveCooling
Intel 240GB SSD HGST 4TB Storage DVD-RW Cooler Master Hyper 212 EVO 
OSMonitorPowerCase
Windows 7 x64 AOC 27" 1080p Corsair CX750m Corsair 200R 
Audio
Asus Xonar DS 
  hide details  
Reply
FX Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-8320e Gigabyte GA-970A-UD3P Sapphire R9 380 4GB 2x8GB Crucial Ballistix DDR3-1600 
Hard DriveHard DriveOptical DriveCooling
Intel 240GB SSD HGST 4TB Storage DVD-RW Cooler Master Hyper 212 EVO 
OSMonitorPowerCase
Windows 7 x64 AOC 27" 1080p Corsair CX750m Corsair 200R 
Audio
Asus Xonar DS 
  hide details  
Reply
post #7 of 35
just use superPi
post #8 of 35
A = pi*r^2

There ya go
post #9 of 35
Thread Starter 
Quote:
Originally Posted by Retrospekt View Post
3.141592653589793238462643383279502884197169399375 10582097494459230781640628620899862803482534211706 79821480865132823066470938446095505822317253594081 28481117450284102701938521105559644622948954930381 96442881097566593344612847564823378678316527120190 91456485669234603486104543266482133936072602491412 73724587006606315588174881520920962829254091715364 36789259036001133053054882046652138414695194151160 9
Thread title is how to calculate pi.

Quote:
just use superPi
This is for my benchmark, which will have multi-threaded pi calculation if i can get it nailed down.

http://www.overclock.net/coding-prog...en-source.html

Quote:
A = pi*r^2

There ya go
You can't use pi's value in the calculation of pi.
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
Lee XT
(17 items)
 
  
CPUMotherboardGraphicsRAM
AMD FX-6300 Asus M5A97 SAPPHIRE Radeon HD 7850 AMD 4GB DDR3 1333MHZ 
RAMRAMRAMHard Drive
AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ AMD 4GB DDR3 1333MHZ OCZ Vertex 4 256GB 
CoolingOSMonitorKeyboard
Corsair H80 Windows 8.1 Pro MCE Dell P2414H WHXV7  Microsoft Generic 
PowerCaseMouseMouse Pad
Ultra 600W Limited Edition NZXT Black Steel Razer Deathadder Razer Goliath 
Audio
Realtek HD Audio 
  hide details  
Reply
post #10 of 35
Maybe this Link will help! http://www.cs.uwaterloo.ca/~alopez-o...aq/node38.html
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming