Performance of tables slower than built in?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri May 24 17:40:40 UTC 2019


On Friday, 24 May 2019 at 17:04:33 UTC, Alex wrote:
> I'm not sure what the real precision of the build in functions 
> are but it shouldn't be hard to max out a double using standard 
> methods(even if slow, but irrelevant after the LUT has been 
> created).

LUTs are primarily useful when you use sin(x) as a signal or when 
a crude approximation is good enough.

One advantage of a LUT is that you can store a more complex 
computation than the basic function.  Like a filtered square wave.




More information about the Digitalmars-d-learn mailing list