samhocevar / lolremez

📈 Polynomial Approximations using the Remez Algorithm
Do What The F*ck You Want To Public License
396 stars 36 forks source link

Marvellous. A couple of small suggestions? #6

Open g40 opened 6 years ago

g40 commented 6 years ago

Would be very handy to

a) have the error factors printed out in the code b) be able to create a generated function name from range and a command line argument i.e. pow_64_127 c) be able to specify a list of ranges as in -r 1:64 -r 65:128 ...

I can send a PR when I get around to the above if you wish.

I am using the outputs to generate a (much) more compact form for a lookup table. Saves a massive number of cycles not having to index and interpolate with some 3rd order equation!

Invaluable. Thanks again.

samhocevar commented 6 years ago

Thanks for the suggestions, I am glad the software is useful!

a) and b) make sense to me and I’ll welcome any PR, but c) smells of feature creep to me and I believe that users can do several runs from inside a script instead.