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. Math puzzle

Math puzzle

Scheduled Pinned Locked Moved The Lounge
helphardwarealgorithmslounge
57 Posts 28 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.
  • M Mark_Wallace

    Jeeze, it'll be a really interesting story if you go into that level of technical detail. Given that characters and character interactions count ten times more than technical details, try having one of them say "Yup, must be a couple o' gozillion projectors, so you'd better start polishin'." Writing Sci-Fi isn't about explaining every detail of technology; it's about not describing the bits that don't work: "Captain! The dilithium crystals are cracking under the strain! The warp engines are failing!" Um, what exactly are dilithium crystals and warp engines, again? And light sabres, for that matter?

    I wanna be a eunuchs developer! Pass me a bread knife!

    B Offline
    B Offline
    Bassam Abdul Baki
    wrote on last edited by
    #31

    That's assuming the novel isn't a cover-up for building the real thing. [Cue X-Files theme song.]

    Web - BM - RSS - Math - LinkedIn

    G M R 3 Replies Last reply
    0
    • B Bassam Abdul Baki

      That's assuming the novel isn't a cover-up for building the real thing. [Cue X-Files theme song.]

      Web - BM - RSS - Math - LinkedIn

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

      Even better; cue Stargate: Universe

      Software Zen: delete this;

      B 1 Reply Last reply
      0
      • M Mark_Wallace

        Jeeze, it'll be a really interesting story if you go into that level of technical detail. Given that characters and character interactions count ten times more than technical details, try having one of them say "Yup, must be a couple o' gozillion projectors, so you'd better start polishin'." Writing Sci-Fi isn't about explaining every detail of technology; it's about not describing the bits that don't work: "Captain! The dilithium crystals are cracking under the strain! The warp engines are failing!" Um, what exactly are dilithium crystals and warp engines, again? And light sabres, for that matter?

        I wanna be a eunuchs developer! Pass me a bread knife!

        T Offline
        T Offline
        ThePotty1
        wrote on last edited by
        #33

        Exactly this. Consider a car with automatic transmission. Can you tell me how a planetary gearset works? More importantly, will I still be awake when you're done? So work out your technology, drop a couple of throwaway hints how it works, or at least what happens when it goes wrong, but for dogs sake don't explain it to me. A second pet peeve of mine is authors who think future generations will be fixated on what we are currently doing. With all of history to choose from, the odds of anyone choosing to visit 2013 is so implausible that the 4th wall is shattered to smithereens. Take two iconic authors, Frank Herbert, and Iain Banks. Dune. This has to be one of the best Sci-Fi books ever written. Does he explain how the space ships fold space? No, he explains that they need navigators who are permanently high to pilot them. Does he care what their ancestors were doing in the 20th century? Bahahahaha, you probably couldn't pinpoint the second millenium with his calendar. Excession. I would vote this the best Sci-Fi book ever written. Does he explain how they built those defense drones so small? No, he throws it into a fight, and as it dies, he mentions that the entire battle took half a second. Hm, sorry, spoilers :-O

        M 1 Reply Last reply
        0
        • B Bassam Abdul Baki

          That's assuming the novel isn't a cover-up for building the real thing. [Cue X-Files theme song.]

          Web - BM - RSS - Math - LinkedIn

          M Offline
          M Offline
          Mark_Wallace
          wrote on last edited by
          #34

          Hell, I'm almost convinced that I can build a matter transmitter. There's just one little detail that I need to figure out, and then it's sorted. (I don't bother telling readers 1/50th of the details that I have worked out, though -- working it all out for me helps me to keep it consistent)

          I wanna be a eunuchs developer! Pass me a bread knife!

          G 1 Reply Last reply
          0
          • T ThePotty1

            Exactly this. Consider a car with automatic transmission. Can you tell me how a planetary gearset works? More importantly, will I still be awake when you're done? So work out your technology, drop a couple of throwaway hints how it works, or at least what happens when it goes wrong, but for dogs sake don't explain it to me. A second pet peeve of mine is authors who think future generations will be fixated on what we are currently doing. With all of history to choose from, the odds of anyone choosing to visit 2013 is so implausible that the 4th wall is shattered to smithereens. Take two iconic authors, Frank Herbert, and Iain Banks. Dune. This has to be one of the best Sci-Fi books ever written. Does he explain how the space ships fold space? No, he explains that they need navigators who are permanently high to pilot them. Does he care what their ancestors were doing in the 20th century? Bahahahaha, you probably couldn't pinpoint the second millenium with his calendar. Excession. I would vote this the best Sci-Fi book ever written. Does he explain how they built those defense drones so small? No, he throws it into a fight, and as it dies, he mentions that the entire battle took half a second. Hm, sorry, spoilers :-O

            M Offline
            M Offline
            Mark_Wallace
            wrote on last edited by
            #35

            ThePotty1 wrote:

            the best Sci-Fi book ever written

            Not unless Gateway is unwritten :P

            I wanna be a eunuchs developer! Pass me a bread knife!

            1 Reply Last reply
            0
            • M Mark_Wallace

              Jeeze, it'll be a really interesting story if you go into that level of technical detail. Given that characters and character interactions count ten times more than technical details, try having one of them say "Yup, must be a couple o' gozillion projectors, so you'd better start polishin'." Writing Sci-Fi isn't about explaining every detail of technology; it's about not describing the bits that don't work: "Captain! The dilithium crystals are cracking under the strain! The warp engines are failing!" Um, what exactly are dilithium crystals and warp engines, again? And light sabres, for that matter?

              I wanna be a eunuchs developer! Pass me a bread knife!

              G Offline
              G Offline
              Gregory Gadow
              wrote on last edited by
              #36

              A good science fiction author knows exactly how things work, even when the details do not make it into the books.

              1 Reply Last reply
              0
              • G Gary Wheeler

                Even better; cue Stargate: Universe

                Software Zen: delete this;

                B Offline
                B Offline
                Bassam Abdul Baki
                wrote on last edited by
                #37

                Even much better: cue Basic Instinct, since she wrote the novel to cover up the reality of it.

                Web - BM - RSS - Math - LinkedIn

                1 Reply Last reply
                0
                • M Mark_Wallace

                  Hell, I'm almost convinced that I can build a matter transmitter. There's just one little detail that I need to figure out, and then it's sorted. (I don't bother telling readers 1/50th of the details that I have worked out, though -- working it all out for me helps me to keep it consistent)

                  I wanna be a eunuchs developer! Pass me a bread knife!

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

                  Mark_Wallace wrote:

                  working it all out for me helps me to keep it consistent

                  I imagine you've read Larry Niven's accounts of the critiques he's received for his Ringworld design. A veritable pile of well-known scientists from a variety of disciplines have written lengthy discussions on how to build one. He's incorporated some of their ideas in the later novels in the series.

                  Software Zen: delete this;

                  M 1 Reply Last reply
                  0
                  • G Gary Wheeler

                    Mark_Wallace wrote:

                    working it all out for me helps me to keep it consistent

                    I imagine you've read Larry Niven's accounts of the critiques he's received for his Ringworld design. A veritable pile of well-known scientists from a variety of disciplines have written lengthy discussions on how to build one. He's incorporated some of their ideas in the later novels in the series.

                    Software Zen: delete this;

                    M Offline
                    M Offline
                    Mark_Wallace
                    wrote on last edited by
                    #39

                    That kind of feedback I could live with, but I imagine that a lot of it comes from giving too much information in the story, which allows people to see that you've got it wrong :D The most I've ever given about matter transmitters is: "Everybody was so happy that I had got him to explain the Booths' functions so well.  I remember it very clearly.  He went to great pains to tell me how the statis effect stopped all movement in solid objects, and how that made the objects massless, but of infinite mass.  Or was it indefinite mass?  Anyway, it was something to do with making things to not exist any more, so that the universe stopped caring about where the things were. I had not understood a word, so I kept asking the idiot questions that it turned out everybody wished would be answered." The last line pushes you to believe that they work, because everyone else had an epiphany about their workings, and you associate yourself with them, even though almost no information whatsoever is provided in the story (it's similar to a vid "reaction shot", like where you don't show a great basketball pass, you just show the reaction of some kid in the spectator seats -- everyone leaves the theatre believing that they saw a great basketball pass). That kind of technique is usually referred to as "Getting away with murder".

                    I wanna be a eunuchs developer! Pass me a bread knife!

                    G 1 Reply Last reply
                    0
                    • M Mark_Wallace

                      That kind of feedback I could live with, but I imagine that a lot of it comes from giving too much information in the story, which allows people to see that you've got it wrong :D The most I've ever given about matter transmitters is: "Everybody was so happy that I had got him to explain the Booths' functions so well.  I remember it very clearly.  He went to great pains to tell me how the statis effect stopped all movement in solid objects, and how that made the objects massless, but of infinite mass.  Or was it indefinite mass?  Anyway, it was something to do with making things to not exist any more, so that the universe stopped caring about where the things were. I had not understood a word, so I kept asking the idiot questions that it turned out everybody wished would be answered." The last line pushes you to believe that they work, because everyone else had an epiphany about their workings, and you associate yourself with them, even though almost no information whatsoever is provided in the story (it's similar to a vid "reaction shot", like where you don't show a great basketball pass, you just show the reaction of some kid in the spectator seats -- everyone leaves the theatre believing that they saw a great basketball pass). That kind of technique is usually referred to as "Getting away with murder".

                      I wanna be a eunuchs developer! Pass me a bread knife!

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

                      Mark_Wallace wrote:

                      That kind of technique is usually referred to as "Getting away with murder"

                      I imagine it's all in knowing how much to bribe someone at the Artistic License Bureau :-D.

                      Software Zen: delete this;

                      1 Reply Last reply
                      0
                      • S Steve Maier

                        I calculated out that you would need 318,120.125 to cover the entire area. So that would be 318,121 to cover it totally. I used my Amusement park job experience to help me... ou all know the game where you have the large red dot that you have to cover with 5 silver circles. I can email you the math, later. No time to type it in here right now.

                        Steve Maier

                        A Offline
                        A Offline
                        agolddog
                        wrote on last edited by
                        #41

                        Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et generaliter nullam in infinitum ultra quadratum potestatem in duos eiusdem nominis fas est dividere cuius rei demonstrationem mirabilem sane detexi. Hanc marginis exiguitas non caperet.

                        1 Reply Last reply
                        0
                        • G Gregory Gadow

                          I'm working on something for a science fiction piece, and I'm hoping the biggest gathering of geeks I'm a part of can help. The specific problem: I have a large sphere (a space ship, thanks for asking) with a radius of 450 meters. This gives it a surface area of 2,544,961 m2 (A = 4πr2) Embedded in the surface are projectors that each create a force field 4m in diameter. I want to know how many projectors I would need to completely encase the sphere with absolutely no breaks. Overlap is fine, and variables such as the relative angle of neighboring forcefields or the distance of the force fields from the surface of the sphere can be considered negligible and thus irrelevant. The general problem: If the answer could come with a generalized algorithm that I can apply to spheres of other sizes, I would be most appreciative.

                          R Offline
                          R Offline
                          RafagaX
                          wrote on last edited by
                          #42

                          This is it. That moment they told us in high school where one day, algebra would save our lives.

                          CEO at: - Rafaga Systems - Para Facturas - Modern Components for the moment...

                          1 Reply Last reply
                          0
                          • G Gregory Gadow

                            I'm working on something for a science fiction piece, and I'm hoping the biggest gathering of geeks I'm a part of can help. The specific problem: I have a large sphere (a space ship, thanks for asking) with a radius of 450 meters. This gives it a surface area of 2,544,961 m2 (A = 4πr2) Embedded in the surface are projectors that each create a force field 4m in diameter. I want to know how many projectors I would need to completely encase the sphere with absolutely no breaks. Overlap is fine, and variables such as the relative angle of neighboring forcefields or the distance of the force fields from the surface of the sphere can be considered negligible and thus irrelevant. The general problem: If the answer could come with a generalized algorithm that I can apply to spheres of other sizes, I would be most appreciative.

                            J Offline
                            J Offline
                            jschell
                            wrote on last edited by
                            #43

                            Gregory.Gadow wrote:

                            I have a large sphere

                            Why does it need to be a sphere?

                            Gregory.Gadow wrote:

                            each create a force field 4m in diameter.

                            Is the force field itself a sphere? Or is it flat?

                            Gregory.Gadow wrote:

                            Overlap is fine

                            Overlap is required to insure complete coverage.

                            1 Reply Last reply
                            0
                            • G Gregory Gadow

                              I'm working on something for a science fiction piece, and I'm hoping the biggest gathering of geeks I'm a part of can help. The specific problem: I have a large sphere (a space ship, thanks for asking) with a radius of 450 meters. This gives it a surface area of 2,544,961 m2 (A = 4πr2) Embedded in the surface are projectors that each create a force field 4m in diameter. I want to know how many projectors I would need to completely encase the sphere with absolutely no breaks. Overlap is fine, and variables such as the relative angle of neighboring forcefields or the distance of the force fields from the surface of the sphere can be considered negligible and thus irrelevant. The general problem: If the answer could come with a generalized algorithm that I can apply to spheres of other sizes, I would be most appreciative.

                              9 Offline
                              9 Offline
                              9082365
                              wrote on last edited by
                              #44

                              Hang on a minute. Doesn't this all rather depend on just how far this field is projected? A force field which is literally flush with the surface of the projector is, after all, kinda useless, certainly for impact damage as it will simply transmit the force as if it were part of the hull. And, of course, for every centimetre of projection not only does the surface area covered grow but the overlap and relative angles become increasingly important (far from the negligible suggested). Overall I'd have to say that anyone who turned up to a space science convention suggesting this as the way to project a seamless spherical force field might well cause the deaths of several eminent professors from either conniptive fits or laughing themselves stupid! And that's even before you consider the additional mass added by thousands of projectors before you even add engines, a crew, a life support system, and the other million or so things necessary to sustained existence in space. You may be able to get the thing moving (assuming it's built in space and stays there) but with all that momentum it'll be an absolute swine to stop at anything above a crawl!! What would Sheldon say?

                              1 Reply Last reply
                              0
                              • B Bassam Abdul Baki

                                That's assuming the novel isn't a cover-up for building the real thing. [Cue X-Files theme song.]

                                Web - BM - RSS - Math - LinkedIn

                                R Offline
                                R Offline
                                Railbot
                                wrote on last edited by
                                #45

                                Oh no, he's trying to build a Dyson Sphere around a small star. Then put a shield up around it.

                                1 Reply Last reply
                                0
                                • A Andrew Rissing

                                  You could easily figure out the minimum needed, assuming you ignored overlap. I'm assuming that the projectors are producing a circular force field. It would just be:

                                  Projectors * 2 * 2 * Pi = 450 * 450 * 4 * Pi
                                  Projectors = 450 * 450
                                  Projectors = 202,500

                                  The hard part would be determining how you arrange the circles so that you minimize the overlap. Using the overlap depicted in the last picture of this[^], it means you'd only really use 81.83% of each circle with the rest being wasted.

                                  Projectors * 2 * 2 * Pi * .8183 = 450 * 450 * 4 * Pi
                                  Projectors = (450 * 450) / .8183
                                  Projectors = 247,461.265

                                  Thus, you would need 247,462 (rounded up) projectors for your spaceship. :)

                                  S Offline
                                  S Offline
                                  ssa ed
                                  wrote on last edited by
                                  #46

                                  Andrew - very close. The Lower Bound: If you imagine a geo grid, and place intersecting circles on its surface (i.e the force field coincides with the sphere's surface), it will form a tessellation of near perfect hexagons where each side is 2m. The area of each "hexagon" = 10.3923 m^2. So least number of sensors is protection at the sphere's surface, and exactly 244,863 +/- 1 (rounding) sensors are needed. Not only do we have a lower bound on the answer, but the upper bound would be an imaginary sphere projected out to whatever distance desired. For example, if you want to project the force field 450 meters above the sphere, the surface area of the projected sphere would be 8 times as large, hence 8 times as many sensors would be needed.

                                  1 Reply Last reply
                                  0
                                  • G Gregory Gadow

                                    I'm working on something for a science fiction piece, and I'm hoping the biggest gathering of geeks I'm a part of can help. The specific problem: I have a large sphere (a space ship, thanks for asking) with a radius of 450 meters. This gives it a surface area of 2,544,961 m2 (A = 4πr2) Embedded in the surface are projectors that each create a force field 4m in diameter. I want to know how many projectors I would need to completely encase the sphere with absolutely no breaks. Overlap is fine, and variables such as the relative angle of neighboring forcefields or the distance of the force fields from the surface of the sphere can be considered negligible and thus irrelevant. The general problem: If the answer could come with a generalized algorithm that I can apply to spheres of other sizes, I would be most appreciative.

                                    M Offline
                                    M Offline
                                    MrChug
                                    wrote on last edited by
                                    #47

                                    Simulate the problem following Ken Perlin's lead. Keep adding projectors until the surface is covered.

                                    They will never have seen anything like us them there. - M. Spirito

                                    1 Reply Last reply
                                    0
                                    • G Gregory Gadow

                                      I'm working on something for a science fiction piece, and I'm hoping the biggest gathering of geeks I'm a part of can help. The specific problem: I have a large sphere (a space ship, thanks for asking) with a radius of 450 meters. This gives it a surface area of 2,544,961 m2 (A = 4πr2) Embedded in the surface are projectors that each create a force field 4m in diameter. I want to know how many projectors I would need to completely encase the sphere with absolutely no breaks. Overlap is fine, and variables such as the relative angle of neighboring forcefields or the distance of the force fields from the surface of the sphere can be considered negligible and thus irrelevant. The general problem: If the answer could come with a generalized algorithm that I can apply to spheres of other sizes, I would be most appreciative.

                                      R Offline
                                      R Offline
                                      ramachandraniyers
                                      wrote on last edited by
                                      #48

                                      Area of sphere = 4PI r**2 projector area is 4PI Hence Number of projectors = r**2

                                      J 1 Reply Last reply
                                      0
                                      • G Gregory Gadow

                                        I'm working on something for a science fiction piece, and I'm hoping the biggest gathering of geeks I'm a part of can help. The specific problem: I have a large sphere (a space ship, thanks for asking) with a radius of 450 meters. This gives it a surface area of 2,544,961 m2 (A = 4πr2) Embedded in the surface are projectors that each create a force field 4m in diameter. I want to know how many projectors I would need to completely encase the sphere with absolutely no breaks. Overlap is fine, and variables such as the relative angle of neighboring forcefields or the distance of the force fields from the surface of the sphere can be considered negligible and thus irrelevant. The general problem: If the answer could come with a generalized algorithm that I can apply to spheres of other sizes, I would be most appreciative.

                                        B Offline
                                        B Offline
                                        BotReject
                                        wrote on last edited by
                                        #49

                                        This is a well-known maths problem that is used in the architecture of geodesic domes and in biological virus construction. Like a virus you can use an icosahedron of 20 equilateral triangular sides (although some other shapes work too, for example some viruses are dodecahedrons, but the icosahedron is probably easier to work with) that encloses the sphere. The individual shield areas will be hexagons, but with 12 pentagons, one at each vertex. Then it's simply a case of fitting the hexagons to each triangular face, with those along the edge centered on the edge. For example, you could have two hexagons along each edge, one in the center and a pentagon centered on each corner, such that the edge of each equilateral triangle would be three times the hexagon diameter. Of course you can use more hexagons for each face of a larger icosahedron. There is, no doubt, a mathematical relationship, but I once used this bottom-up approach to code a graphics algorithm that generates icosahedrons from spheres and or/ hexagonal/pentagonal prisms.

                                        Bot

                                        1 Reply Last reply
                                        0
                                        • R ramachandraniyers

                                          Area of sphere = 4PI r**2 projector area is 4PI Hence Number of projectors = r**2

                                          J Offline
                                          J Offline
                                          jschell
                                          wrote on last edited by
                                          #50

                                          It isn't that simple. First the sphere is curved. That means that the intersection with the surface is not exactly 4PI. It would be 4PI if the sphere was plane. Second that calculation presumes that the intersection is mallable in that it fills the space completely with the adjacent projectors. That would be true if the projections (and intersection) was a rectagle/square and was on a plane. Visually one can see the problem by drawing two circles that just touch side by side. Then attempt to draw another circle such that the 'gap' at the closest edge is also covered. The overlap, which must happen, is area that is lost (per your calculation) and will need to be made up by adding more projectors.

                                          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