Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Programming Question of the Week?

Programming Question of the Week?

Scheduled Pinned Locked Moved The Lounge
question
13 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Daniel Pfeffer

    radius = circumference / (2*Pi), of course!

    If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

    M Offline
    M Offline
    megaadam
    wrote on last edited by
    #4

    What is the circumference of a circular buffer?

    ... such stuff as dreams are made on

    D 1 Reply Last reply
    0
    • M megaadam

      What is the radius of a circular buffer?

      ... such stuff as dreams are made on

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #5

      In Bits I think it is something like this: r= BufferLength * BitPerEntry / 2 / π

      1 Reply Last reply
      0
      • M megaadam

        What is the circumference of a circular buffer?

        ... such stuff as dreams are made on

        D Offline
        D Offline
        Daniel Pfeffer
        wrote on last edited by
        #6

        circumference = 2*Pi*radius Infinite Loop: see Infinite Loop :)

        If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

        B 1 Reply Last reply
        0
        • M megaadam

          What is the radius of a circular buffer?

          ... such stuff as dreams are made on

          theoldfoolT Offline
          theoldfoolT Offline
          theoldfool
          wrote on last edited by
          #7

          circumference/Pie*R*Round -r (recursive)

          Arguing with a woman is like reading the Software License Agreement. In the end, you ignore everything and click "I agree". Anonymous

          1 Reply Last reply
          0
          • M megaadam

            What is the radius of a circular buffer?

            ... such stuff as dreams are made on

            P Offline
            P Offline
            Power Puff Boy
            wrote on last edited by
            #8

            The same as the radius of a circular argument.

            I'm gonna build a wall around my cubical and make Mexico pay for it!

            M 1 Reply Last reply
            0
            • M megaadam

              What is the radius of a circular buffer?

              ... such stuff as dreams are made on

              M Offline
              M Offline
              Marc Clifton
              wrote on last edited by
              #9

              Infinite. ;) Marc

              Latest Article - Create a Dockerized Python Fiddle Web App Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny Artificial intelligence is the only remedy for natural stupidity. - CDP1802

              1 Reply Last reply
              0
              • P Power Puff Boy

                The same as the radius of a circular argument.

                I'm gonna build a wall around my cubical and make Mexico pay for it!

                M Offline
                M Offline
                megaadam
                wrote on last edited by
                #10

                :thumbsup:

                ... such stuff as dreams are made on

                1 Reply Last reply
                0
                • M megaadam

                  What is the radius of a circular buffer?

                  ... such stuff as dreams are made on

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #11

                  megaadam wrote:

                  What is the radius of a circular buffer?

                  Warning: Be careful doing live experiments to calculate the answer, to many tests running at the same time greatly increases risk of a buffer low stampede.

                  Sin tack the any key okay

                  1 Reply Last reply
                  0
                  • D Daniel Pfeffer

                    circumference = 2*Pi*radius Infinite Loop: see Infinite Loop :)

                    If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                    B Offline
                    B Offline
                    Brady Kelly
                    wrote on last edited by
                    #12

                    This is how buffer overruns occur. If the radius is too little, the circumference won't have enough room for all the buffer elements.

                    Immanentize the Eschaton!

                    1 Reply Last reply
                    0
                    • D Daniel Pfeffer

                      radius = circumference / (2*Pi), of course!

                      If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack. --Winston Churchill

                      G Offline
                      G Offline
                      Gary Wheeler
                      wrote on last edited by
                      #13

                      r = c / (2 * π)

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups