Why is it ok to divide by 0.0?
wordsandbuttons.online
wordsandbuttons.online
If it's meant to be read by programmers, it's basically all wrong. Per IEEE 754, dividing any number by ±0.0 will give you ±Infinity -- so I'm not exactly sure how that's "ok." Also, the idea that it's "important to fit things into some relatively small amount of digits" because of "the speed of light" is just bizarre. It's like saying the reason we build bridges is because of gravity.. I mean, yeah.. I guess? On the other hand, if it's for laypeople, it does a terrible job of explaining much of anything. You'd need to have prior knowledge of floating point numbers, scientific notation, division by zero, etc.
Are people actually reading it or just upvoting on a whim?
Additionally, they have a neat encoding that makes the size of the mantissa and exponent fields variable. (The whole bitsize of the number is fixed at 32 or 64 bits though.) This allows to have "tapered" accuracy at super large and extra tiny numbers, which allows for more gradual under- and overflow, and buys more accuracy where most of the calculations tend to be done, around 1.
> How far do you think light travels in one nanosecond given the optimal conditions? In one nanosecond, the light travels only about 30 centimeters. This means that if you want something computed in under 1 nanosecond, the signal starting your computation has to go through all the transistors that do the computation by the path that is only 30 centimeters in length.
In real circuits, light travels in a medium, not in free space or air. The speed-of-light in a medium depends on its relative dielectric constant K of the insulator material. For standard SiO2, it's approximately 4, giving a speed of 0.5c, or only 15 centimeters per nanosecond (coincidentally, a typical circuit board has roughly the same dielectric constant, even coax, CAT-6, or fiber optics cables are not far off from it, 15 cm/s is an useful number to remember).
In the history of process node improvements, various doping techniques have been developed for decreasing (or increasing) the K for better performance. The primary motivation of lowering the K is not increasing the speed-of-light, but to reduce parasitic capacitance, charging and discharging a capacitor creates a much longer delay than the theoretical propagation delay of c / sqrt(K).
https://en.wikipedia.org/wiki/Low-%CE%BA_dielectric
Another area of research is optical interconnects.
("Demons of Slow! Be thou bound by the secret power of Fast, whose sign is DAZ and FTZ! By the command of fesetexcept(FE_ALL_EXCEPT) I shall expose thee!")
That’s almost the same thing.
Much of math just doesn’t work if you try to add infinity as just another number. You say dividing by zero is undefined because once you have that infinity anything further you do with it is also going to be infinity, it breaks the way you prove things, it breaks the idea of a number line.
There is plenty of math that deals with infinities, but it is all handled delicately.
https://www.youtube.com/watch?v=J2z5uzqxJNU
Spoiler: A major one goes like this. Suppose X/0 is infinity. Then:
1/0 = infinity
2/0 = infinity
Therefore, 1 = 2.
https://en.wikipedia.org/wiki/Monty_Hall_problem
1 = 2 can't be evaluate in isolation, because in this case is 1 = 2 AFTER x/0 = infinity?
I have gotten "NaN" in dialog boxes where it was really inappropriate, on occasion.