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.
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?
Kiitos. Käytämme tätä aikajanasi parantamiseen. KumoaKumoa
-
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.