by jiggawatts · 6y ago · 0 comments
Maxwell's set of coupled differential vector electromagnetic equations simplify to a hilariously short single equation in Geometric Algebra.
A random Google turned up this paper comparing classic EM and the GA formulation. It's not even the simplest possible representation, because that uses natural units and a 4D GA to basically condense the entire set of EM theory into about 4 characters worth of equation that is fully relativistic for free: https://www.researchgate.net/publication/47524066_A_simplifi...
It's almost a joke. To me it's reminiscent of looking at beginner programmers. You see them do crazy things like calculate a date "next month" by taking apart the pretty-printed date string, parsing to find the month, realising that sometimes the day part is one digit and sometimes it's two, then having to worry about m-d-y or d-m-y formats, building little tables of "days per month" and leap years... and so on.
They can write pages and pages of error free code and it's still Wrong because the correct way is to just call "thedatevar.AddMonth(1);" and be done with it.
PS: 3D game engine vector algebra libraries have all of this in common with the physics maths. Things like the cross product being bizarre, having to pick a basis, not being able to interpolate rotations, gymbal lock, rounding error, having different maths for 2D and 3D, a bunch of special cases to worry about, and so forth...
Watch Enki Mute's Siggraph 2019 presentation on Geometric Algebra. It's mind-blowing how many stupid little quirks of vector algebra just evaporate if you're prepared to step outside of your comfort zone: https://youtu.be/tX4H_ctggYo
Check out the demo https://observablehq.com/@enkimute/animated-orbits
Job the discord https://discord.gg/vGY6pPk
In game engines the vector algebra method is slightly faster, so the elegant programming model is often sacrificed in the name of performance.
That, I can understand.
Why physicists use at least 4 separate formulations of the EM equations I can't understand, especially considering the vector version is the worst yet the most popular.
http://home.lu.lv/~sd20008/papers/essays/Maxwell's%20equatio...
Geometric Algebra may be superior, but it's "one more thing" to learn/teach. It might catch on, but that might take another century of preaching.
I'm not sure though where exactly the idea that GA is slower comes from. It's all down to the application and implementation. Perhaps it's because GA generalizes so well to higher dimensions that many libraries are overly generalized and thus slower than vector algebra libraries that need special cases anyway.
Computing `ln(e^x)` and `x` are equivalent, but the latter is faster.
In the process I gained ... a healthy skepticism of the Qin group's papers. The man himself is sharp, though. Interested to see what they come up with.
https://en.wikipedia.org/wiki/Geometric_algebra
"The geometric product was first briefly mentioned by Hermann Grassmann" (1809 – 1877) "In 1878, William Kingdon Clifford greatly expanded on Grassmann's work to form what are now usually called Clifford algebras in his honor (although Clifford himself chose to call them "geometric algebras"). For several decades, geometric algebras went somewhat ignored, greatly eclipsed by the vector calculus." "The term "geometric algebra" was repopularized in the 1960s by Hestenes."
The background image on:
is William Kingdon Clifford.
This illustrates the entire field of programming as we know it. It actually happens among all programmers but for less obvious things. Especially with design patterns. I've seen programmers use so much structure for the sake of a design pattern on something that could otherwise be 10x simpler.