-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: ability to specify even (or odd) polynomials. #7
Comments
I'm not sure if there is a way to fix coefficients, but for you should be able to transform the function, intervals and weights to get what you want, e.g. consider the following:
to constrain to an even polynomial, you can transform it to:
Odd functions are a bit harder, but it should be possible. |
Ah, for an odd function you can convert:
to
|
It may be interesting to note that the Sollya tool, which finds polynomial (not rational, sadly) approximations using (among other things) the Remez algorithm, does support this feature (in fact it's even more general than that). https://sollya.org/sollya-weekly/help.php?name=fpminimax
https://sollya.org/sollya-weekly/help.php?name=remez
|
FindMinimaxPolynomial.jl supports looking for even (or odd) polynomials, among other things that make it more powerful than Remez.jl, though only for the polynomial case, it doesn't support rational approximation. |
For even/odd functions using the respective type of polynomial typically allows for much higher degree approximations. Would it be relatively easy to add the ability to generate a minimax polynomial with certain terms fixed? Thanks!
The text was updated successfully, but these errors were encountered: