News for hackers. Stuff that matters.
Re:Quaternion Algebras by K0balt on Saturday January 31, 2026 @08:41AM (#46836616)
They sound shiny and mysterious?
Re:Quaternion Algebras by chpatrick on Saturday January 31, 2026 @09:19AM (#46836920)
I know you know, just practical intuition for 3D graphics in case someone finds it useful:

There's a 1-1 mapping between complex numbers and 2D rotation matrices that only do rotation and scaling. The benefit is that the complex number only has two coefficients, not four like the matrix. Multiplying these complex numbers is the same as multiplying the equivalent matrices. Quaternions are the same idea just in 3 dimensions (so with 3 imaginary units i j k, not just i, one per plane).

Re:Quaternion Algebras by Frotag on Saturday January 31, 2026 @10:29AM (#46837496)
> Quaternions are the same idea just in 3 dimensions (so with 3 imaginary units i j k, not just i, one per plane).

I justify quaternions to myself with the intuition from [1]. In essence quaternions represent rotations in 4D, where multiplying by a "unit" (i,j,k), rotates two distinct planes by 90 degrees. The reason introducing a single unit j doesn't work is the same reason this rotation-is-multiplication trick doesn't work in 1D (or really any odd-number of dimensions). Anyways if we call this 4th axis w and pick a simple rule like ij = k then we get some nice properties like

    - multiplying by i rotates xy + zw planes by 90 degrees
    - j rotates xz + yw
    - k rotates xw + yz
    - 1 rotates nothing
Notably this definition covers all 6 unique planes. But if we want to rotate only a single plane, we have to make up a new property, something that lets us rotate say xz by 90 and yw by -90. So we make up another rule that multiplying by a unit on the right does this, which algebraically looks like ij = -ji. This is incidentally why the rotation formulas have 1/2 everywhere, because if we want to rotate xy by 90, we multiply on the left by i/2 then on the right by -i/2.

[1] https://www.reedbeta.com/blog/why-quaternions-double-cover/

Re:Quaternion Algebras by Scene_Cast2 on Saturday January 31, 2026 @08:54AM (#46836728)
Then why not geometric / Clifford algebra?
Re:Quaternion Algebras by Sharlin on Saturday January 31, 2026 @09:10AM (#46836847)
"Quaternions" definitely sounds shinier and more mysterious than "geometric algebra". Indeed I can’t immediately come up with any math term more shiny and mysterious, except maybe "transcendental", but as a concept transcendentals are much more familiar to most than quaternions.
Re:Quaternion Algebras by bhadass on Saturday January 31, 2026 @12:20PM (#46838581)
true on the naming, but i think geometric/clifford algebra has its own mysterious aura precisely because it can be framed as "suppressed" or "overlooked".. plus it genuinely does have elegant mathematical structure backing up the hype

funny thing is quaternions had that exact same energy in the computer graphics community for years. after ken shoemake introduced them to CG in 1985, there was a long period of "why are we using euler angles like cavemen when this exists??". now quaternions are well known tooling for people in graphics and the mystique has worn off at least in that community.

Re:Quaternion Algebras by RobotToaster on Saturday January 31, 2026 @10:14AM (#46837355)
non-Euclidean geometry is a disappointingly boring subject.
Re:Quaternion Algebras by woopsn on Saturday January 31, 2026 @01:53PM (#46839530)
Why anything except universal algebra? I mean, granted, I myself dove right into topos theory...
Re:Quaternion Algebras by esafak on Saturday January 31, 2026 @02:23PM (#46839861)
They get mentioned too. Things people would like to know more about.