Today's beef with math: overloading the term "inverse". Inverse of a scalar: 1/n, aka n^-1 Inverse of a matrix: m^-1. So far so good. Inverse of vector: -v. What. Why not v^-1? Turns out both would be right. There is Additive and Multiplicative Inverses.
When you google “inverse of vector” and “inverse of matrix” the top results similarly assume additive for vec and multiplicative for matrix and scalar. This is what originally led me to write these tweets.
-
-
That's a sort of selection bias though. Matrices have additive inverse also but you're comparing search results of two differently sized things.
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
-
-
The frustrating bit is that I’m trying to build this vocabulary of terms, properly naming functions I use, and having consistency between them all while still remaining intuitive. I’d like to have functions for multi-inverse be called reciprocal(), but fear it will be confusing.
-
Reciprocal() would be nice, as it leaves “inverse()” to unambiguously mean additive. However, users of the code will want to write inverse() to mean reciprocal() because that’s what it means everywhere else. There is little to prevent the mistake.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.