2 ms·
Doing a table lookup for common cases and computing for the less common ones is perfectly valid!
by WalterBright 4y ago
Doing a table lookup for common cases and computing for the less common ones is perfectly valid!
- Jeff_Brown 4y agoAnd for some problems it's even efficient. Not factorial, though.
- Jeff_Brown 4y agoOh you're right, hive mind, it's efficient. Sorry.
- dxbydt 4y agoNot 100% sure but I believe this is how we landed the lunar module on the moon the first time...tan/arctan/both were too hard to compute on the processors of those days so they discretized into half angles & stored the tangents in a lookup table.
- hgsgm 4y agoThat's how early calculators worked, and some fast math libraries today too.
- speed_spread 4y agoThe Pentium FDIV bug was due to a bad value in a lookup table.