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.
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.
-
Negation for additive inverse maybe? Or just unary minus?
Keskustelun loppu
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.