DKenefake / OptimalPoly

Generates MinMax polynomial approximations of functions. Stable implementation of the Remez Algorithm using multi-precision arithmetic. Also does C/C++ code generation!
BSD 3-Clause "New" or "Revised" License
24 stars 0 forks source link

Bug in the Code #3

Open atkinssamuel opened 10 months ago

atkinssamuel commented 10 months ago

By setting the first and last points in the extremum array to the start and end of the bound, the minimax polynomial will only be produced in cases where the maximum error in this region is the start and end of the bound:

image

In cases like the one below, the minimax polynomial will not be generated.

image
DKenefake commented 10 months ago

Interesting, I will look at this on the weekend. Thank you for bringing this to my attention.