The pi thread

Discussion in 'Physics & Math' started by James R, Oct 4, 2018.

  1. James R Just this guy, you know? Staff Member

    Messages:
    39,421
    This is a thread to post interesting and/or fun stuff about the mathematical constant pi (\(\pi\)).

    To get the ball rolling, here's an image of the first 786,432 digits of \(\pi\) as a 1024x768 image. Each individual pixel is one digit in the decimal expansion, with the digits 0-9 each having a different colour.

    Please Register or Log in to view the hidden image!

     
    Last edited: Oct 4, 2018
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. James R Just this guy, you know? Staff Member

    Messages:
    39,421
    Here's another visualisation. This time, we write pi in base 4, then use the digits to follow a path in 2-D space. Here 0 is north, 1 is south, 2 is east and 3 is west.

    Please Register or Log in to view the hidden image!



    This was generated by Francisco Aragón. Sourced from an article The Guardian, here (14 March 2014).

    The image is generated using the first 100 billion digits (presumably base 4 digits) of pi.
     
  4. Google AdSense Guest Advertisement



    to hide all adverts.
  5. Quantum Quack Life's a tease... Valued Senior Member

    Messages:
    23,328
    excellent... now can you do the same with random numbers using a random number generator?
    so we can compare..

    Please Register or Log in to view the hidden image!



    (if you don't have the software maybe another member might be able to help out.)
     
  6. Google AdSense Guest Advertisement



    to hide all adverts.
  7. DaveC426913 Valued Senior Member

    Messages:
    18,959
    I wonder what the next number smaller than 786,432 that is the sum of two primes is.

    Then you could redo the matrix with those two primes as lengths of the sides.

    I guess won;t get far - it's a Sisyphean task, since you could choose any number that's the sum of two primes and look at the result.
     
  8. Neddy Bate Valued Senior Member

    Messages:
    2,548

    Starting from the upper left corner, going from left to right:
    magenta = 3
    white = "."
    cyan = 1
    green = 4
    cyan = 1
    orange = 5
    black = 9
    blue = 2
    red = 6
    orange = 5
    magenta = 3
    orange = 5
    gray = 8
    black = 9
    yellow = 7
    black = 9

    I guess white serves as both zero and the decimal point.
     
    Last edited: Oct 5, 2018
  9. DaveC426913 Valued Senior Member

    Messages:
    18,959
    Am I imagining things, or is there a hint of pattern in that noise?

    Please Register or Log in to view the hidden image!

     
  10. Neddy Bate Valued Senior Member

    Messages:
    2,548
    You are imagining things.

    First of all, each horizontal line being 1024 pixels is arbitrary. Choose a different number, and you will get a different pattern.

    Also, any random sequence of those same 10 colors, would look much like that, in any arrangement.
     
  11. Quantum Quack Life's a tease... Valued Senior Member

    Messages:
    23,328
    If the picture generated was circular? Say starting center outwards?
    (Example: the center pixel would be the leading number 3.)
     
  12. DaveC426913 Valued Senior Member

    Messages:
    18,959
    Nobody gets me.

    Please Register or Log in to view the hidden image!


    Look again, from a distance...
     
  13. Write4U Valued Senior Member

    Messages:
    20,077
    I see a fractal network, darker colored connecting lines all throughout the picture.
    If you unfocus your eyes it becomes clearly visble.
     
  14. Michael 345 New year. PRESENT is 72 years oldl Valued Senior Member

    Messages:
    13,077
    I got with unfocused eyes
    • Circle on the left edges touching left edge and top and bottom
    • Orchid
    • Spacesuit feet bottom left corner leaning about 45°
    What was I supposed to see?

    Face of jesus?

    NAA I only see him on burnt toast

    Please Register or Log in to view the hidden image!

     
  15. TheFrogger Banned Valued Senior Member

    Messages:
    2,175
    Shouldn't that be burnt pi?
     
  16. Michael 345 New year. PRESENT is 72 years oldl Valued Senior Member

    Messages:
    13,077
    Don't burn my pi's

    Six minutes in microwave with a cup full of water to keep the pi pastry soft

    Toast I have baby jesus and face of jesus

    Still waiting on the cross carrying Jesus

    Unfortunately the toastjesushere.com closed down

    Please Register or Log in to view the hidden image!

     
  17. DaveC426913 Valued Senior Member

    Messages:
    18,959
    Oh my God people. Your eyes are worse then mine.

    Please Register or Log in to view the hidden image!

     
  18. Tiassa Let us not launch the boat ... Valued Senior Member

    Messages:
    37,892
    I'm just wondering if anyone bothered to view the picture at full size.

    Because when you scroll to examine another part of the noise, it shows during the redraw.

    On an i5 Dell laptop running Linux.

    Results may vary.

    (It was actually a pretty good joke, all things considered, a fitting tribute.)
     
  19. Neddy Bate Valued Senior Member

    Messages:
    2,548
    Pull the other one.
     
  20. TheFrogger Banned Valued Senior Member

    Messages:
    2,175
    The meaning of life, the universe and everything. Didn't they build a giant computer to solve such a question, and they called the computer Earth??
     
  21. arfa brane call me arf Valued Senior Member

    Messages:
    7,832
    How noisy is the image of pi? Is it possible to consider a 2-dimensional array as a colouring of pi; what that means abstractly is we take the digits of pi to the nodes of a graph and colour the nodes depending on the value or weight of each digit.

    So what colour is the first say, quadrillion digits? It will look like a single colour, beige perhaps, from a sufficient distance. Up close (at 1024x768 resolution the nodes are visible) you can see 'different' colours. There's that word again.

    I notice changing the resolution (ctrl+) on my PC introduces a square-ish pattern to the image.
    Has anyone else noticed this?
    The square pattern I see gets smaller as the text size increases (using Ctrl+), I'm guessing it's an artefact of the rendering algorithm.
     
    Last edited: Oct 7, 2018
  22. Quantum Quack Life's a tease... Valued Senior Member

    Messages:
    23,328
    We did this one here ( in collaboration) probably over 10 years ago:
    I can't recall the specifics of how.

    Please Register or Log in to view the hidden image!

     
  23. DaveC426913 Valued Senior Member

    Messages:
    18,959
    It is.

    At 125% magnification, the browser essentially renders every fourth pixel twice, so it creates artifacting; it's called a Moiré pattern.
     

Share This Page