measuring pi
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] measuring pi

25 Posts
14 Users
0 Reactions
129 Views
 ed34
Posts: 0
Free Member
Topic starter
 

how do they measure pi accurately, i know its the ratio of circumference to diameter ie pi = c/d, but doesnt this mean the accuracy of any pi calculation is dependant on the accuracy that c or d can be measured to?

So how do they manage to calculate pi to so many decimal places accurately?

i'm probably missing something here!


 
Posted : 06/08/2012 12:55 pm
Posts: 41395
Free Member
 

Don't they use a trig formula or similar and an algorithm?


 
Posted : 06/08/2012 12:56 pm
Posts: 36
Free Member
 

[img] [/img]
[img] [/img]


 
Posted : 06/08/2012 1:00 pm
 IHN
Posts: 19877
Full Member
 

Basically they draw an enormous circle and use a really accurate ruler. That way, when dividing the circumference by the diameter any innaccuracies in the measurements are essentially nullified.


 
Posted : 06/08/2012 1:03 pm
Posts: 11402
Free Member
 

[url= http://en.wikipedia.org/wiki/Gauss%E2%80%93Legendre_algorithm ]Gauss–Legendre algorithm[/url]


 
Posted : 06/08/2012 1:05 pm
Posts: 41395
Free Member
 

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


 
Posted : 06/08/2012 1:05 pm
Posts: 0
Free Member
 

I remember working Pi to over 10,000 places for a school project many years ago. I actually got the computer to do it, I wrote a program that placed random dots on a square, and counted how many were inside the circle and outside, AKA [url= http://learntofish.wordpress.com/2010/10/13/calculating-pi-with-the-monte-carlo-method/ ]Monte Carlo Method[/url].. After a few days it had calculated Pi to a lot of decimal places.


 
Posted : 06/08/2012 1:08 pm
 D0NK
Posts: 592
Full Member
 

So Pi [url= http://en.wikipedia.org/wiki/Proof_that_22/7_exceeds_%CF%80 ]does not equal 22/7?[/url] well everyday is an education


 
Posted : 06/08/2012 1:11 pm
Posts: 0
Free Member
 

Anyone else read contact? Love the ending, with the message encoded deep in the solution for Pi.


 
Posted : 06/08/2012 1:30 pm
 loum
Posts: 3624
Free Member
 

Anyone else read contact? Love the ending, with the message encoded deep in the solution for Pi.

Not yet. Worth reading?


 
Posted : 06/08/2012 1:46 pm
Posts: 36
Free Member
 

[img] [/img]


 
Posted : 06/08/2012 1:51 pm
Posts: 0
Free Member
 

[img] [/img]


 
Posted : 06/08/2012 1:52 pm
Posts: 1003
Full Member
 

Anyone else read contact? Love the ending, with the message encoded deep in the solution for Pi.
Not yet. Worth reading?

Way better than the film imho. And I liked the film... 🙂


 
Posted : 06/08/2012 1:53 pm
Posts: 0
Free Member
 

Not yet. Worth reading?

Yes definitely, the book is fabulous and a much more complete story than the film, which I also liked as beanum's comments.

I know you shouldn't compare two mediums, but there is so much more to enjoy in the book especially the way Sagan blends real science with fiction. He leaves you wanting to read more about the subject.


 
Posted : 06/08/2012 1:57 pm
Posts: 0
Free Member
 

Good book indeed.

Pi can be calculated with a formula that's based on radians and the value of pi - it's a recursive type formula so the more times you loop through it the more decimal places you calculate down to.


 
Posted : 06/08/2012 1:59 pm
Posts: 0
Free Member
 

There's quite a few ways of doing it, I had to do it for some coursework back in college, think I used the fact that 4*arctan(1) = pi, so if you can find an estimate for arctan(1) then you've got it. The first way that springs to mind to do that would be to find the root of tan(x/4)-1, which is simple (graph paper, a very sharp pencil, and a magnifying glass - sorted).

https://www.google.co.uk/search?q=tan%28x%2F4%29-1&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-GB:official&client=firefox-a

A better question, and one I always keep forgetting to ask people who might know, is why? Why does anyone want/need to know any more then 15 digits or so? Even space shuttles and such don't need to be that accurate (I think). So why on earth are we putting super computers to work finding several billion digits of an irrational number - what are we expecting to find? A message from god?


 
Posted : 06/08/2012 2:00 pm
Posts: 0
Free Member
 

Exactly 🙂 I'm sure there are people who reckon that Contact could just be a case of fiction reflecting the truth...


 
Posted : 06/08/2012 2:02 pm
Posts: 0
Free Member
 

Also something interesting is the proof that pi is actually irrational. Bit more complicated than proving various surds are irrational.

http://en.wikipedia.org/wiki/Proof_that_%CF%80_is_irrational


 
Posted : 06/08/2012 2:07 pm
Posts: 0
Free Member
 

Why does anyone want/need to know any more then 15 digits or so?

You must bow down to the persuit of pure mathematics for the sake of mathematics; otherwise the Maths undergrads will sneer at you behind your back.
Pffft, who am I kidding? Maths undergrads in a social situation?!
😉


 
Posted : 06/08/2012 2:10 pm
Posts: 0
Free Member
 

Using computers to estimate an irrational number to as many places as you possibly can is in no way pure mathematics.

Pffft, who am I kidding? Maths undergrads in a social situation?!

Ridiculous 🙂


 
Posted : 06/08/2012 2:15 pm
Posts: 0
Free Member
 

Using computers to estimate an irrational number to as many places as you possibly can is in no way pure mathematics.

Indeed, it's all a bit dirty, isn't it? Still - it looks like the digits are random. Allegedly there is no proof that they are or should be - so let's find out.
As for the necessity of this level of precision, pi in double precision is [b]3.141592653589793[/b]0 where bold is the accurate bit (puntastic). That's 16 dp, and is what most computer simulations will use.
Edit: Cheeky fix


 
Posted : 06/08/2012 2:19 pm
 loum
Posts: 3624
Free Member
 

Thanks, I'll give it a go 🙂


 
Posted : 06/08/2012 2:21 pm
Posts: 0
Free Member
 

There must be some practical application of knowing values of irrational numbers to increasingly long decimal places?

Like the way that extremely large prime numbers are valuable in cryptography for instance.

Oh and 'maths undergrad in can't spell '[i]pursuit[/i]' shocker' 😀

If there is one thing I would change with a magic wand about myself (well apart from 'that') it would be to be excellent at maths. I have tried in adult life to re-learn and get better, but it just wasn't happening.

EDIT - just thinking about it, if you had values of Pi and 'e' to decimal places longer than anyone else, then when you factored them wouldn't that also be valuable in cryptography?


 
Posted : 06/08/2012 2:26 pm
Posts: 0
Free Member
 

Indeed, it's all a bit dirty, isn't it? Still - it looks like the digits are random. Allegedly there is no proof that they are or should be - so let's find out.

Personally I'm annoyed that I can remember the first 4 decimal places of it, what a waste of my memory.

What are they expecting to find? The Fibonacci sequence or something? Just seems like such a waste of time.

EDIT - just thinking about it, if you had values of Pi and 'e' to decimal places longer than anyone else, then when you factored them wouldn't that also be valuable in cryptography?

I don't really know much about crypotgraphy (but that will change soonish), but how do you factor a decimal number? Unless you multiply whatever number you've got after truncating it by 10^n in order to make it an integer, but then you've just got a really big number, which is probably not going to be prime.


 
Posted : 06/08/2012 2:27 pm
Posts: 0
Free Member
 

Unless you multiply whatever number you've got after truncating it by 10^n in order to make it an integer,

You don't mean 3 and... 3, do you?


 
Posted : 06/08/2012 2:40 pm
Posts: 0
Free Member
 

I think I better stay out of it and refer you to the earlier question of what the practical application of knowing Pi to very long decimal places might be.

I'm a bit out of my depth otherwise.

I might even have misunderstood what factoring means. I thought it just meant multiplying! 😳


 
Posted : 06/08/2012 2:44 pm