image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

image integrating for pi Share It Thread Tools Search this Thread image
Old Jun15-09, 08:42 PM                  #1
cam875

cam875 is Offline:
Posts: 230
integrating for pi

I was thinking about how to approximate pi accurately and came up with something and all the calculations i did seem to show that its true and im wondering if its used often for calculating pi or if there is something better?

radius of this circle equals 1 and therefore calcualting a quarter area of a circle and multiplying by 4 we should get pi.

LaTeX Code: <BR>\\pi=area<BR>

LaTeX Code: <BR>4(\\int_0^1 \\sqrt{1-x^2}  dx) \\approx \\pi<BR>
  Reply With Quote
Old Jun15-09, 09:45 PM                  #2
rochfor1

rochfor1 is Offline:
Posts: 109
Re: integrating for pi

That's true, but you have to think about how you're going to approximate the numerical value of that integral. A commonly used approximation for pi can be derived from the Taylor series for arctangent.
  Reply With Quote
Old Jun16-09, 05:40 PM                  #3
cam875

cam875 is Offline:
Posts: 230
Re: integrating for pi

is the taylor series the fastest method for calculating pi?
  Reply With Quote
Old Jun16-09, 06:09 PM                  #4
rochfor1

rochfor1 is Offline:
Posts: 109
Re: integrating for pi

I don't know what the "fastest" method is. Using Taylor's theorem though you could estimate how quickly the series converges. I just wanted to give a method that you could use that didn't involve approximating an integral.

I imagine a little googling could turn up currently used approximations for pi.
  Reply With Quote
Old Jun17-09, 05:51 AM                  #5
MATLABdude

MATLABdude is Offline:
Posts: 875
Re: integrating for pi

I'm not a mathematician, however, you may want to take a look at the Wikipedia article for at least a starting point:
http://en.wikipedia.org/wiki/Computing_pi

Or Mathworld at Wolfram:
http://mathworld.wolfram.com/PiFormulas.html
  Reply With Quote
Old Jun17-09, 06:17 AM                  #6
fleem

fleem is Offline:
Posts: 328
Re: integrating for pi

And another consideration is whether you want to create digits in succession or you want to converge toward PI. The latter (which is the method you show) cannot calculate more digits than the floating point variables can hold.
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: integrating for pi
Thread Thread Starter Forum Replies Last Post
Integrating.... selter01 Calculus & Beyond 2 Mar2-09 04:39 AM
Integrating Sin duki Calculus & Beyond 4 May6-08 09:37 PM
Need help integrating coffeebean51 Differential Equations 2 Mar9-08 09:50 AM
Integrating exp(mod(x)) Morto Calculus & Analysis 9 Nov11-07 11:13 AM
Need help, soon please!! Integrating sutupidmath Calculus & Analysis 12 May23-07 03:03 AM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image