r/Python • • Aug 05 '19

Python's response to MATLAB

Post image
4.3k Upvotes

372 comments sorted by

View all comments

Show parent comments

10

u/Eurynom0s Aug 05 '19

Again, Matlab is targeted at non-programmers, which is the kind of audience you might expect to assume that the scope of the ijk being used as loop variables is restricted to the loop.

0

u/[deleted] Aug 05 '19

[deleted]

1

u/[deleted] Aug 05 '19

They are used in looping variables commonly, and correspond in math to imaginary numbers (most folks are familiar with i == sqrt(-1)). The nerdy term is quaternion.

1

u/billsil Aug 07 '19

Quaternions are the 4d version of imaginary numbers, which are 2d. They're used for specifying rotations in a way that don't suffer from gimbal lock. Octonians are the 8d version and are used in quantum physics. At each level, you lose fundamental properties of math (e.g., commutative or associative), which makes them more difficult.