Liste des Groupes | Revenir à cl c |
On 06/03/2025 14:49, Scott Lurndal wrote:At school we used a, b, c... for trigonometry and p, q, r for point co-ordinates, so I suppose I assumed that i, j, k... for matrices was intended to exploit a nice juicy part of the alphabet that wasn't being used for anything else...David Brown <david.brown@hesbynett.no> writes:I'd always assumed it was because 'index' was too much to type, and that j and k just followed on.On 05/03/2025 18:51, Scott Lurndal wrote:>Richard Harnden <richard.nospam@gmail.invalid> writes:>On 05/03/2025 17:09, Janis Papanagnou wrote:>On 05.03.2025 17:40, bart wrote:[...]>>
Seriously, short variable names for common things - i, j, k for loop
counters;
So, one might ask _why_ i, j, k instead of a, b, c?
>
Answer: Fortran IMPLICIT INTEGER
>
Nonsense.
>
Ask rather why Fortran picked i, j, k for integer-type index variables.
Their use for that function in maths /long/ predates Fortran.
That doesn't mean that C programmers didn't adopt the
use of i,j,k from FORTRAN.
Didn't know about any hysterical raisins.
Les messages affichés proviennent d'usenet.