you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 3 years ago (2 children)

It's my understanding that i,j are conventionally used in mathematics which carried over into programming, but specifically it comes from Fortran in which all integer variables start with "I" through "N" based on said mathematical convention

  • source
  • hideshow 4 child comments
  • [–] 1 point 3 years ago*

    In fact this goes all the way back to Hamilton when he invented quaternion, in which i,j,k are used as basis vectors (which are generalizations of the imaginary i). Later Gibbs dropped the scalar component and gave us the modern vector.

  • source
  • parent