Re:Trig Functions Your Math Teachers Never Taught You
by rotten on Saturday September 14, 2013 @07:34AM
(#6385285)
In the article they mention that log functions make some multiplication problems much faster for humans to solve. Can they also make it faster for computers to solve?
In other words, if I'm writing a program (perhaps for data analysis) that has to do a large amount of multiplication, can I get the answers faster by converting them to log and then adding them, and then reverse look up the result?
Or, are addition and multiplication equally fast on most computers so that the time to look up log values would always be slower?
Re:Trig Functions Your Math Teachers Never Taught You
by temujin on Saturday September 14, 2013 @08:00AM
(#6385317)
Floating-point multiplication generally isn't much slower than addition on modern machines. Logs are useful for avoiding floating point overflow/underflow, though.
In other words, if I'm writing a program (perhaps for data analysis) that has to do a large amount of multiplication, can I get the answers faster by converting them to log and then adding them, and then reverse look up the result?
Or, are addition and multiplication equally fast on most computers so that the time to look up log values would always be slower?