Results 1 to 21 of 21

Thread: A Few Math Jocks Might Appreciate This...

  1. #1

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    A Few Math Jocks Might Appreciate This...

    If interested, please do the following:

    (1) Open the Windows Calculator. Set View to Scientific. Got it? If so, proceed.

    (2) Click on the Pi key.

    (3) Click on the M+ key to store it in memory.

    (4) Enter the following integer: 5419351

    (5) Press the / key.

    (6) Enter the following integer: 1725033

    (7) Press the = Key.

    (8) Press the - key.

    (9) Press the MR key.

    (10) Press the = key.

    Do you see a rather small number on the screen? How small is it and what does this mean?

    -------------------
    Originally posted in a different fashion by Anhn on another VbForums thread.
    Doctor Ed

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Boston, MA
    Posts
    391

    Re: A Few Math Jocks Might Appreciate This...

    it's about 2e-14. That's the error in the estimate of pi you got by dividing those two numbers. It's interesting because it's correct to 13 places but of course the number of digits in those numbers is 14 so you're not gaining anything.
    Last edited by wy125; Mar 7th, 2009 at 09:11 PM.

  3. #3

  4. #4

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by NickThissen
    Indeed. 5419351 / 1725033 is an approximation of pi, just like 22/7 (only much more precise).

    If 5419351 / 1725033 is almost pi, then that number minus pi is almost zero.
    Then somebody went to work and did this for us:

    0.000000000000022144779300394027945726930849601

    How on earth did he crank out that many digits to the right of the decimal?
    Doctor Ed

  5. #5
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: A Few Math Jocks Might Appreciate This...

    You can theoretically crank out as many digits as you want as long as you know both pi and 5419351/1725033 to at least that many digits, and assuming you have to computational power to calculate it.

  6. #6
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by Code Doc
    How on earth did he crank out that many digits to the right of the decimal?
    My Windows Calculator gives exactly that many digits:

    5419351 / 1725033 - pi = 2.2144779300394027945726930849601e-14

    I'm guessing your version is only displaying 16 digits?

  7. #7
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: A Few Math Jocks Might Appreciate This...

    when using VB .Net and Math.Pi I get
    5419351 / 1725033 - pi = 0.000000000000030198066
    or
    5419351 / 1725033 - pi = 3.01980662698043E-14
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  8. #8
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: A Few Math Jocks Might Appreciate This...

    Be aware though that you can't be sure that that many digits are correct. Computers all have a lower limit on the smallest number they can calculate with, often called e (actually epsilon but I cannot type that ).

    This means that, for a computer, 1 + e = 1.
    In other words, adding e (or smaller) to any number is 'not recognized'; the computer cannot calculate that anymore.

    In most computers, e is around 3E-16 so the large number of digits windows calculator chucks out may be incorrect (noise) after 16 digits orso.


    You can get a rough approximation for e using something like this:
    vb.net Code:
    1. Dim eps As Double = 1
    2.         Dim x As Double = 1 + eps
    3.  
    4.         Do While x > 1
    5.             x = 1 + eps
    6.             eps = eps / 10
    7.         Loop
    8.  
    9.         MessageBox.Show(CStr(eps))
    My computer tells me eps = 1E-17.

  9. #9
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: A Few Math Jocks Might Appreciate This...

    Windows Calculator uses arbitrary precision, which is very much unlike the intrinsic variable types of Visual Basic. Its value for pi is accurate to 46 digits*, and it can calculate 5419351 / 1725033 far beyond that. The 32-digit precision it displays is correct.

    *Windows Calculator gives this result:
    pi - 3.141592653589793238462643383279 = 5.0288419716939931148196659300057e-31

    The actual value, with as many digits, is:
    pi - 3.141592653589793238462643383279 = 5.0288419716939937510582097494459e-31

  10. #10
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by Code Doc
    Then somebody went to work and did this for us:

    0.000000000000022144779300394027945726930849601

    How on earth did he crank out that many digits to the right of the decimal?
    If you google either the numerator or denominator in that fraction you can find some programs that generated this approximation. Since the numbers are so large, the probability of finding an unrelated page to the pi approximation is low enough that it doesn't really happen.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  11. #11

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: A Few Math Jocks Might Appreciate This...

    A few more "magic Pi" integer pairs with even more accuracy:

    80143857 / 25510582 = 3.14159265358979267191
    (Error = 0.00000000000000044409)

    245850922 / 78256779 = 3.14159265358979311600
    (Error = 0.00000000000000000000) Gasp!
    Doctor Ed

  12. #12

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: A Few Math Jocks Might Appreciate This...

    And now for the grand finale:

    2646693125139304345 / 842468587426513207 = 3.14159265358979323846264338327950288418

    error = 0.00000000000000000000000000000000000001
    Doctor Ed

  13. #13

  14. #14

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by NickThissen
    I just come up with this one myself:
    5293386250278608690 / 1684937174853026414

    Or
    326750146457197957216320 / 104007801929327614483392

    (They are just multiples of your last one )
    Nick, did you use the Windows calculator or did you program your computer to obtain the results in VB6 or any other language? And, what do you mean by "Multiples". Multiples of what?

    You see, Nick, Excel and VB6 cannot reach more than 15 to the right of the decimal. Therefore, how does anyone know that your "magic Pi" integers or the pair that I just posted are valid? Just curious. I think Logophobic already hinted at the answer.
    Last edited by Code Doc; Mar 10th, 2009 at 08:02 PM.
    Doctor Ed

  15. #15
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: A Few Math Jocks Might Appreciate This...

    Nick's fractions are equivalent to your final fraction. The numerator and denominator are each multiplied by 2 in the first and 123456 in the second.

    As for your ratios, I have taken this a bit further using an iterative process that produces the same results you have posted.

    Iteration 5: 5419351 / 1725033
    Iteration 6: 80143857 / 25510582
    Iteration 7: 245850922 / 78256779

    Iteration 22: 2646693125139304345 / 842468587426513207

    Iteration 35: 18644210947563865148979297792 / 5934636664705637943635533097

    I35 = 3.14159265358979323846264338327950288419716939937510582096659008

    pi - I35 = 0.00000000000000000000000000000000000000000000000000000000835451 = 8.35451E-57

  16. #16
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by Code Doc
    You see, Nick, Excel and VB6 cannot reach more than 15 to the right of the decimal. Therefore, how does anyone know that your "magic Pi" integers or the pair that I just posted are valid? Just curious. I think Logophobic already hinted at the answer.
    There are various infinite- or high-precision calculators in existence. The PowerToy Calc (XP) offers up to 512 bits of precision under Advanced Options, or around 154 decimal digits:

    3.1415926535897932384626433
    832795028841971693993751058
    209749445923078164062862089
    986280348253421170679821480
    865132823066470938446095505
    822317253594081284811174502
    841027019385211055596446229
    489549303819644288109756659
    334461284756482337867831652
    712019091456485669234603486
    104543266482133936072602491
    412737245870066063155881748
    815209209628292540917153643
    678925903600113305305488204
    665213841469519415116094330
    572703657595919530921861173
    819326117931051185480744623
    799627495673518857527248912
    279381830119491298336733624
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  17. #17
    New Member
    Join Date
    Oct 2006
    Posts
    2

    Re: A Few Math Jocks Might Appreciate This...

    It's funny to me that the PowerToy Calculator would bother to go to that many digits. It's essentially over-kill at that point
    Elementary applications, such as calculating the circumference of a circle, will rarely require more than a dozen decimal places. For example, a value truncated to 11 decimal places is accurate enough to calculate the circumference of a circle the size of the earth with a precision of a millimeter, and one truncated to 39 decimal places is sufficient to compute the circumference of any circle that fits in the observable universe to a precision comparable to the size of a hydrogen atom.

  18. #18
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: A Few Math Jocks Might Appreciate This...

    Well, the PowerToy Calculator just has an extended-extended precision mode, and since it has a few pre-defined constants the creators must not have wanted to give a false value for, they included the extra-extra precision on pi in that mode. I agree it's completely unnecessary in almost all real-world applications. Highly iterative algorithms might need all of that precision--maybe.

    To be honest a huge part of math ends up being edge cases nobody in their right mind would ever encounter, except a mathematician looking for a counterexample to some theorem. The real numbers themselves are an example of this--realistically, you only need a finite amount of precision to calculate anything in the real world to an accuracy where quantum uncertainty takes over. Regardless, the irrationals are still very important theoretically.

    See this and this for examples of math's silliness. The hyperreals are awesome but nuts; unmeasurable sets are just nuts.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  19. #19
    Master Of Orion ForumAccount's Avatar
    Join Date
    Jan 2009
    Location
    Canada
    Posts
    2,802

    Re: A Few Math Jocks Might Appreciate This...


  20. #20

    Thread Starter
    PowerPoster Code Doc's Avatar
    Join Date
    Mar 2007
    Location
    Omaha, Nebraska
    Posts
    2,354

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by ForumAccount View Post
    BUT, how could anyone ever prove that he was wrong (or right)?

    Finally, that picture is so ugly that I have a feeling this is a complete hoax.
    Last edited by Code Doc; Apr 5th, 2009 at 02:31 PM.
    Doctor Ed

  21. #21
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,431

    Re: A Few Math Jocks Might Appreciate This...

    Quote Originally Posted by Code Doc View Post
    BUT, how could anyone ever prove that he was wrong (or right)?
    There are infinite series expansions for pi that should converge quickly enough to do 1,000,000 digits. The error term after you take some number of terms is provably small, so you can be sure you have the first _x_ digits correct.
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width