News for hackers. Stuff that matters.
Re:A Dictionary of Single-Letter Variable Names by lemonwaterlime on Monday October 14, 2024 @09:16PM (#41843969)
If you’re doing any kind of scientific computing or electronics computations, “i” or “j” mean the imaginary number sqrt(-1).

Some software, such as Matlab, have those letters reserved for the common case of imaginary roots of a polynomial, and “ii” and “jj” as variables is a common coding convention. Whether “i” or “j” is your letter for imaginary numbers depends on if you’re an electrical engineer or not.

There are no comments on this comment yet.