sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Odd(0)=1

    Scheduled Pinned Locked Moved Dynamic Components
    sketchup
    12 Posts 6 Posters 2.2k Views 6 Watching
    Loading More Posts
    • 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.
    • R Offline
      remus
      last edited by

      Havent done a lot of testing, but it seems to be that:

      odd(0)=1 and even(0)=0
      

      Im pretty sure this is wrong, as an even number is defined as any number that can be expressed in terms of 2k=number.

      http://remusrendering.wordpress.com/

      1 Reply Last reply Reply Quote 0
      • scottliningerS Offline
        scottlininger
        last edited by

        Hey Remus,

        I had the exact same reaction when I saw that pattern... but both Google Spreadsheets and Excel agree that odd(0)=1 and even(0)=0. So that's what DCs do, too.

        Go figure. πŸ˜‰

        • Scott Lininger
          SketchUp Software Engineer
          Have you visited the Ruby API Docs?
        1 Reply Last reply Reply Quote 0
        • R Offline
          remus
          last edited by

          Isnt it just plain wrong though? I cant see a lot of point in reproducing it if theres not a good reason.

          http://remusrendering.wordpress.com/

          1 Reply Last reply Reply Quote 0
          • scottliningerS Offline
            scottlininger
            last edited by

            It's important that DCs follow the standards, even goofy ones. A formula should work exactly the same way in spreadsheet X as it does inside SU, or you couldn't interoperate with spreadsheet X.

            All that being said, my brain totally thinks of 0 as an even number. πŸ˜‰

            • Scott Lininger
              SketchUp Software Engineer
              Have you visited the Ruby API Docs?
            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              hm... not actually thought if that. First instinct would be even, as it's between 1 and -1 which is odd, but thinking mroe, isn't it none of them? since 0 is a representation of nothing? (goofy standards aside)

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                Well, now you got my brain ticking on this... Had to look more into this. Searching Google for an answer hasn't helped much. One of the links I came across: http://ask.yahoo.com/20020909.html

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • R Offline
                  remus
                  last edited by

                  Im sticking with even, i like the nice simple definition πŸ‘

                  http://remusrendering.wordpress.com/

                  1 Reply Last reply Reply Quote 0
                  • chrisglasierC Offline
                    chrisglasier
                    last edited by

                    What's infinity then ...

                    With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                    1 Reply Last reply Reply Quote 0
                    • GaieusG Offline
                      Gaieus
                      last edited by

                      That's even, too. Two times half infinity (which in itself is equal to infinity, too).
                      🀣

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • chrisglasierC Offline
                        chrisglasier
                        last edited by

                        The problem I think is that both zero and infinity can be considered either since the first (odd) index number of an array is always 0. In US and China the ground floor is 1 but its datum is 0 (NB "ground zero"). In these types of situations it can cause some problems.

                        Un morceau de pas de quoi

                        Chris

                        With TBA interfaces we can analyse what is to be achieved so that IT can help with automation to achieve it.

                        1 Reply Last reply Reply Quote 0
                        • R Offline
                          remus
                          last edited by

                          Nothing like resurrecting an old thread, but i found a rather in depth wikipedia article on it: http://en.wikipedia.org/wiki/Evenness_of_zero and most importantly it supports my original point πŸ˜†

                          And infinity isnt a number, so trying to work out if its odd or even is like trying to work out if a haddock is odd or even πŸ˜›

                          http://remusrendering.wordpress.com/

                          1 Reply Last reply Reply Quote 0
                          • Chris FullmerC Offline
                            Chris Fullmer
                            last edited by

                            I'm just trying to work out what a haddock is...(crazy Brittish english πŸ˜„ πŸ˜„

                            Lately you've been tan, suspicious for the winter.
                            All my Plugins I've written

                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post
                            Buy SketchPlus
                            Buy SUbD
                            Buy WrapR
                            Buy eBook
                            Buy Modelur
                            Buy Vertex Tools
                            Buy SketchCuisine
                            Buy FormFonts

                            Advertisement