Multiplication by addition using logarithms is possible and took place in past using slide rule and log tables. Is it still used in software? Maybe sometimes it's faster to convert numbers and use addition operations instead of multiplication, then convert numbers back? Is it used somewhere? If yes, where?
Asked
Active
Viewed 1,239 times
2
1 Answers
0
It always depends. There is always a tradeoff in time, memory and precision. At a fixed precision you can storing all the answers in memory and just look them up. In the case of log tables you can only get 4 significant figures at most before the energy you spend carrying the tables becomes more than the energy needed to calculate the logarithm yourself. (Your energy consumption may vary.) But modern hardware does not use log tables, not to say software, since we want many more significant figures. However, it is not known what is the optimal algorithm for multiplication or computing the elementary functions, including the exponential and the logarithm.
user21820
- 57,693
- 9
- 98
- 256
That said, discrete logarithms are used for some cryptographic calculations and you can still buy a slide rule if you want. But day to day computing doesn't have a use for the real logaritm to the best of my understanding.
– user24142 Dec 12 '23 at 07:34