Not just electricians.
3d graphics are all about about quaternions (4d version of imaginary numbers).
Comment on It'll be ok. Nobody's going to judge you.
davad@lemmy.world 3 hours ago
I’ve always thought “imaginary” vs “real” was an unfortunate naming convention.
I don’t know about other fields, but electrical engineering uses imaginary numbers with AC circuits and changing electrical fields. Since electricity moves as waves, imaginary numbers let you represent what’s coming 90 degrees later in a compact way.
Not just electricians.
3d graphics are all about about quaternions (4d version of imaginary numbers).
Quaternions are useful, but no means necessary or intrinsic to 3d graphics.
They are useful for describing rotations in 3d space, but the same can be done with a matrix, or even Euler angles. It’s just a more calculations.
That said, basically all the major game engines use quaternions, so unless you are creating your own 3d renderer, you have to learn at least the basics about them.
Quaternions really shine at spherical interpolation (Slerp - yes thats the real terminology) between two rotations.
I’d say Quaternions are necessary purely because they avoid gimbal locking common with 3 axis Euler rotations.
I know in Blender all other rotation options are really just quaterinions under the hood. But an advantage Euler rotations have over quaternions is continuous rotation. I can set 2 key frames with linear extrapolation and have them just continue along each axis forever. Everything quaternion ideally should be bounded to the 4d unit circle.
Electrical engineers also use them as a simple way of solving differential equations with laplace transforms. Much easier as long as you don’t care about what happens at infinity.
Yep, it is bad naming. I took it in highschool but it didn’t really make sense till I saw how it described electric fields with the wave 90 degrees into the flat page.
FishFace@piefed.social 2 hours ago
Yeah, I think it causes unnecessary difficulties. I actually think they’re introduced at a time when you could instead teach them as two-dimensional vectors with pointwise addition and a special multiplication and division rule, and prove that (0, 1)×(0, 1) = (-1, 0) using that rule, so that sqrt(-1, 0) = (0, 1).
Then you can establish a convention that you write (a, b) as a + bi (and i = (0, 1)).
This is too abstract for younger students, but nowadays I don’t think they learn complex numbers anyway, and I think it would be less spooky for the older students.
sangeteria@lemmy.ml 1 hour ago
Also tbf, rational numbers are just the lattice modded out by the equivalence relations (a, b) ~ (c, d) iff ad = bc, and the equivalence classes just happen to form an ordered field. If you show an undergrad math/science student this esoteric definition of rationals, the motivation of “2D numbers” makes a lot more sense. Of course, please don’t show this to an elementary or middle schooler, a high schooler might be able to handle this if they’re passionate about math.