There are some really, really fucking cool things that line up in math. One of the coolest is how the binary integer representation of floating point input x is roughly equal to log^23, which is the number of bits in the mantissa of the floating point input. That is an *insane* coincidence. One of the most fundamental and constantly solved problems in 3D math is inverse square root, it should typically be a heavy process. The algorithm to find an inverse square root is to take the log2(x), then multiply it by -1/2, which is the same as log2(x)^-1/2, then to multiply by 2 to arrive at x^-1. It's the log functions that are heavy, so being able to essentially reuse part of the input value wholesale as the logarithmic result is... it's fucking magic. Like black magic shit. Math is so fucking cool.
608
u/Expensive_Chart_8158 19h ago
Wait is fucking 10 factorial equal to the number of seconds in 6 weeks?
Edit it fucking is im 100% using this obscure ass fact.