4 ms·
The inverse of zero is infinity? Shouldn't it be undefined?
by croes 6y ago
The inverse of zero is infinity?
Shouldn't it be undefined?
- banachtarski 6y agoThe limit of a function 1/x as x approaches zero from the left or right is well defined as negative or positive infinity respectively. The limit is only undefined when no approach direction is specified (as the results from the left and right do not agree)
- thaumasiotes 6y agoNot if you know that it's positive or negative. The inverse of a negative infinitesimal can't be anything other than a negative infinite number, and the inverse of a positive infinitesimal can't be anything other than a positive infinite number. There's no difficulty with the definitions.
- ben509 6y agoThere is the difficulty that you don't actually have zero, you have postive and negative infinitesimal.
- thaumasiotes 6y agoThat is the meaning of "+0.0" and "-0.0". Actual zero is neither.
- deleted 6y ago[deleted]
- marcosdumay 6y agoFloating point numbers represent the extended real set, where infinity exists. What is completely different from the integral numbers most computers use, on those division by zero is undefined.
- thaumasiotes 6y agoDivision by zero is still undefined in the extended reals. To define it you'd need something like the projective reals. But it doesn't matter; floating point numbers don't have a zero; they have two zeroes of different signs.
- Igelau 6y agoFloating point is a real trip. They should probably spend more time going over its intricacies in programming courses, because its not going anywhere. E.g. you should hardly ever test floating point numbers for equality. Instead you usually check if they are "close enough" within an expected precision.
- recursive 6y agoNot if you're following IEEE-754.