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. The History of "i" [modified]

The History of "i" [modified]

Scheduled Pinned Locked Moved The Lounge
databasetutorialquestionloungelearning
56 Posts 37 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.
  • F Francisco Viella

    Don't worry, I know quite a number of mathematics jokes. I suggest we call it even and stop this thread right here to avoid possible casualties should we start the war. :-D Francisco

    C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #35

    :-D cheers, Chris Maunder

    CodeProject.com : C++ MVP

    1 Reply Last reply
    0
    • A alex barylski

      You know the ubiqious "i" found in almost every example of a for loop for newbies? On another forum were having this disscussion (sorta)... I said (I believe I read it in an C K&R book) that it's because it's simply an alias for Index which is what "i" is usually doing in a for loop...?? Someone else says it has to do with: They are from general Summation Notation that, like many other mathmatical notations, worked its way into early languages -- specifically Fortran (remember its FORMula TRANSlation) I never would have guessed :P Cheers :) It's frustrating being a genius and living the life of a moron!!! -- modified at 21:18 Wednesday 4th October, 2006

      D Offline
      D Offline
      Dheeraj Gaba
      wrote on last edited by
      #36

      Its because "i" stands for "Iteration/Iterator" :-O

      1 Reply Last reply
      0
      • C Chris Maunder

        i is reserved for sqrt(-1) cheers, Chris Maunder

        CodeProject.com : C++ MVP

        R Offline
        R Offline
        Ravi Bhavnani
        wrote on last edited by
        #37

        Please. Let's try and be rational about this. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        N 1 Reply Last reply
        0
        • R Ravi Bhavnani

          Please. Let's try and be rational about this. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #38

          Ravi Bhavnani wrote:

          Please. Let's try and be rational about this.

          :laugh: Regards, Nish


          Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
          The Ultimate Grid - The #1 MFC grid out there!

          1 Reply Last reply
          0
          • A alex barylski

            You know the ubiqious "i" found in almost every example of a for loop for newbies? On another forum were having this disscussion (sorta)... I said (I believe I read it in an C K&R book) that it's because it's simply an alias for Index which is what "i" is usually doing in a for loop...?? Someone else says it has to do with: They are from general Summation Notation that, like many other mathmatical notations, worked its way into early languages -- specifically Fortran (remember its FORMula TRANSlation) I never would have guessed :P Cheers :) It's frustrating being a genius and living the life of a moron!!! -- modified at 21:18 Wednesday 4th October, 2006

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

            'i' for integer, 'i' for iterator. The tigress is here :-D

            1 Reply Last reply
            0
            • R Ryan Binns

              David Stone wrote:

              Coming up with the pronunciation for those letters is a little difficult though.

              Give the spaghetti to someone who eats with their mouth open and listen to the interesting sounds that emerge :)

              Ryan

              "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

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

              :laugh: Paul

              Where a pointless picture of song titles once resided only blank space now remains.

              1 Reply Last reply
              0
              • Steve EcholsS Steve Echols

                :laugh: No humps! Just double checked. Although...hunching over my monitor might give me a "single" in a couple more years. :)


                - S 50 cups of coffee and you know it's on!

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

                Hmm... :suss: Then you could be a Dromedary[^] ;P Paul

                Where a pointless picture of song titles once resided only blank space now remains.

                1 Reply Last reply
                0
                • H Henrik Husted

                  So you also programmed on ZX Spectrum :)

                  M Offline
                  M Offline
                  Mircea Grelus
                  wrote on last edited by
                  #42

                  Yes, when I was a kind used to mess around with a CIP-03 and then later with a HC-85. Those were the romanian versions for Spectrum. This was my model.[^] regards, Mircea Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.

                  1 Reply Last reply
                  0
                  • E El Corazon

                    Jeremy Falcon wrote:

                    I have always used x for that. It's the new-old-cool thing.

                    :shudder: except that x/X has spatial relationships automatically associated with its use. X and Y on a graph, X,Y,Z in 3D space. When I see x, I see spatial expectations. Personally I think that the use of 'i' comes from deeper inside. Is it the choice of 'i' because of the word integer or is the choice of 'i' as the first integer in Fortran because of a more narcissistic mathematical perspective. :rolleyes: _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #43

                    Jeffry J. Brickley wrote:

                    :shudder: except that x/X has spatial relationships automatically associated with its use. X and Y on a graph, X,Y,Z in 3D space. When I see x, I see spatial expectations.

                    Well, the majority of my programming days haven't been 3D programming. Although, I'm in the process of changing that.

                    Jeffry J. Brickley wrote:

                    Personally I think that the use of 'i' comes from deeper inside. Is it the choice of 'i' because of the word integer or is the choice of 'i' as the first integer in Fortran because of a more narcissistic mathematical perspective.

                    I agree. I'm just saying x is what the rebels use. Ok maybe not, but I have to justify it somehow. :) Jeremy Falcon

                    1 Reply Last reply
                    0
                    • E El Corazon

                      Jeremy Falcon wrote:

                      I have always used x for that. It's the new-old-cool thing.

                      :shudder: except that x/X has spatial relationships automatically associated with its use. X and Y on a graph, X,Y,Z in 3D space. When I see x, I see spatial expectations. Personally I think that the use of 'i' comes from deeper inside. Is it the choice of 'i' because of the word integer or is the choice of 'i' as the first integer in Fortran because of a more narcissistic mathematical perspective. :rolleyes: _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                      J Offline
                      J Offline
                      Jeremy Falcon
                      wrote on last edited by
                      #44

                      Btw, the reason I started using x was because it was a common variable name in math. No, not hard core math, but the stuff they teach you in grade school. I started programming way back then and it just stuck with me I guess. Jeremy Falcon

                      1 Reply Last reply
                      0
                      • J Jeremy Falcon

                        Hockey wrote:

                        You know the ubiqious "i" found in almost every example of a for loop for newbies?

                        I have always used x for that. It's the new-old-cool thing. :) Jeremy Falcon

                        F Offline
                        F Offline
                        Fernando A Gomez F
                        wrote on last edited by
                        #45

                        Hi, the i history is simple. In mathematics, when dealing with matrices and vectors, you usually call a_i_j as the element at the i-th row and j-th column. Then, when iterating over a vector, you usually use this notation taken from linear algebra. Nowadays, this behaviour has been extended to almost every for loop. A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.

                        1 Reply Last reply
                        0
                        • R Roger Wright

                          In mathematics, i, j, and k are universal - they are used as integers, indices and to designate imaginary axes for vector quantities. This bled over into FORTRAN when computers were run almost exclusively for mathematicians and has stuck for decades. The use of n is a fairly new development, but it was only a matter of time before we ran out of integers. Fortunately, x and y are still usable for real numbers, and one has to grant them credit - there are an awful lot of real numbers. These valiant variables don't get half the credit they deserve... Engineers have done what we can to preserve the available pool of numeric variables. We use x, y, and z to designate unit vector directions, thereby reducing the load that i, j, and k have to carry. Recognizing the need to conserve, we have also adopted the variable s to designate the special value jw, mainly because it makes the math a lot easier. "...a photo album is like Life, but flat and stuck to pages." - Shog9

                          J Offline
                          J Offline
                          Jorgen Sigvardsson
                          wrote on last edited by
                          #46

                          Roger Wright wrote:

                          The use of n is a fairly new development, but it was only a matter of time before we ran out of integers.

                          You must be talking about Chuck Norris. He ran out of integers. Twice! :-D

                          1 Reply Last reply
                          0
                          • M MatthysDT

                            How does one discover a letter? :laugh::confused:

                            L Offline
                            L Offline
                            Lilith C
                            wrote on last edited by
                            #47

                            evilnoodle wrote:

                            How does one discover a letter?

                            I don't remember the history other than reading it in a Heinlein novel, but I believe the story is that 'i' as a letter was added to the alphabet much later than most letters. Before that the letter 'j' was used where the 'i' was. Okay, so you don't discover letters, you create them. Reminds me though of an old George Carlin news report where he says that scientists had discovered a hitherto undiscovered new number between 6 and 7. It's "bleen'. Of course, he was thinking in terms of integers. But I had pictures in my head of a group of scientists who each had an extra appendage on their left hands. What I didn't look forward to was having to quote numbers like bleen thousand bleen hundred and bleenty-bleen. Lilith

                            M D 2 Replies Last reply
                            0
                            • C code frog 0

                              The possibilities are transcendental when you get David and Ryan going on Mathematics. Add in Chris and well... somehow it all equals "i" in the end...:laugh:


                              The enemy's gate is down. :cool: Welcome to CP in your language. Post the unicode version in My CP Blog[^] now.

                              C Offline
                              C Offline
                              CAReed
                              wrote on last edited by
                              #48

                              I can't image that this conversation is even happening!!! Christopher Reed "The oxen are slow, but the earth is patient."

                              1 Reply Last reply
                              0
                              • D David Stone

                                Chris Maunder wrote:

                                i is reserved for sqrt(-1)

                                We're not going to start this discussion again...are we? :~

                                They dress you up in white satin, And give you your very own pair of wings In August and Everything After

                                I'm after everything

                                P Offline
                                P Offline
                                Polymorpher
                                wrote on last edited by
                                #49

                                just square it lol Pablo

                                1 Reply Last reply
                                0
                                • A alex barylski

                                  You know the ubiqious "i" found in almost every example of a for loop for newbies? On another forum were having this disscussion (sorta)... I said (I believe I read it in an C K&R book) that it's because it's simply an alias for Index which is what "i" is usually doing in a for loop...?? Someone else says it has to do with: They are from general Summation Notation that, like many other mathmatical notations, worked its way into early languages -- specifically Fortran (remember its FORMula TRANSlation) I never would have guessed :P Cheers :) It's frustrating being a genius and living the life of a moron!!! -- modified at 21:18 Wednesday 4th October, 2006

                                  K Offline
                                  K Offline
                                  Ken R
                                  wrote on last edited by
                                  #50

                                  I'd look to the early definitions of Fortan (I think, it's too many languages ago now) which used the first letter of a variable to define the type (i, j, and k being the first 3 of the integer range). Of course you can bet that start point for integers came either from mathematical formula or being the first letter in the word integer, but I don't know. Happy hunting, Ken R.

                                  1 Reply Last reply
                                  0
                                  • F Francisco Viella

                                    Chris Maunder wrote:

                                    i is reserved for sqrt(-1)

                                    It depends. In electrical engineering, i is reserved for alternate current and, hence, we use j to refer to sqrt(-1). Francisco Silver at last!!

                                    A Offline
                                    A Offline
                                    aasales
                                    wrote on last edited by
                                    #51

                                    whereas the i in electrical engineering stands for current(DC and AC). But how did current symbol became i? Bec i is shortcut for the intensity of current per conductor cross area.

                                    1 Reply Last reply
                                    0
                                    • L Lilith C

                                      evilnoodle wrote:

                                      How does one discover a letter?

                                      I don't remember the history other than reading it in a Heinlein novel, but I believe the story is that 'i' as a letter was added to the alphabet much later than most letters. Before that the letter 'j' was used where the 'i' was. Okay, so you don't discover letters, you create them. Reminds me though of an old George Carlin news report where he says that scientists had discovered a hitherto undiscovered new number between 6 and 7. It's "bleen'. Of course, he was thinking in terms of integers. But I had pictures in my head of a group of scientists who each had an extra appendage on their left hands. What I didn't look forward to was having to quote numbers like bleen thousand bleen hundred and bleenty-bleen. Lilith

                                      M Offline
                                      M Offline
                                      MatthysDT
                                      wrote on last edited by
                                      #52

                                      A number between 6 and 7. "The Nobel Prize in mathematics was awarded to a California professor who has discovered a new number! The number is bleen, which he claims belongs between 6 and 7." --George Carlin Seriously, this is like Guinness world records: "Please watch closely as this brave man attempts to set a new world record, that up until now didn't exist!" --- AWE.....AMAZING!!!!! you can't forget something you never knew...

                                      1 Reply Last reply
                                      0
                                      • L Lilith C

                                        evilnoodle wrote:

                                        How does one discover a letter?

                                        I don't remember the history other than reading it in a Heinlein novel, but I believe the story is that 'i' as a letter was added to the alphabet much later than most letters. Before that the letter 'j' was used where the 'i' was. Okay, so you don't discover letters, you create them. Reminds me though of an old George Carlin news report where he says that scientists had discovered a hitherto undiscovered new number between 6 and 7. It's "bleen'. Of course, he was thinking in terms of integers. But I had pictures in my head of a group of scientists who each had an extra appendage on their left hands. What I didn't look forward to was having to quote numbers like bleen thousand bleen hundred and bleenty-bleen. Lilith

                                        D Offline
                                        D Offline
                                        Dan Neely
                                        wrote on last edited by
                                        #53

                                        Lilith.C wrote:

                                        I don't remember the history other than reading it in a Heinlein novel, but I believe the story is that 'i' as a letter was added to the alphabet much later than most letters. Before that the letter 'j' was used where the 'i' was.

                                        I thought it was the other way around. I'm remembering crucifixes marked INRI "Jesus of Nazareth king(Rex) of the Jews" from sundayschool.

                                        L 1 Reply Last reply
                                        0
                                        • D Dan Neely

                                          Lilith.C wrote:

                                          I don't remember the history other than reading it in a Heinlein novel, but I believe the story is that 'i' as a letter was added to the alphabet much later than most letters. Before that the letter 'j' was used where the 'i' was.

                                          I thought it was the other way around. I'm remembering crucifixes marked INRI "Jesus of Nazareth king(Rex) of the Jews" from sundayschool.

                                          L Offline
                                          L Offline
                                          Lilith C
                                          wrote on last edited by
                                          #54

                                          dan neely wrote:

                                          Lilith.C wrote: I don't remember the history other than reading it in a Heinlein novel, but I believe the story is that 'i' as a letter was added to the alphabet much later than most letters. Before that the letter 'j' was used where the 'i' was. I thought it was the other way around. I'm remembering crucifixes marked INRI "Jesus of Nazareth king(Rex) of the Jews" from sundayschool.

                                          That could well be. As J sajd, J don't remember the hjstory that well. Ljljth

                                          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