Interactive approximation of continuous functions using Remes, Bernstein, and Fourier methods
The main file contains the interactive plot. You can modify abscissas, function, approximation methods, change the degree of approximation, look error wtih the function and see the difference between numerical computation and symbolic.
To modify the new function, write in python. If you want
We add Fourier Method, but the result is not a polynomial ! So, when you update the slider, keep in mind, we change argument in trigonometric function. His form is iθ with 1≤i≤n We add that to personal pleasure! No comments are written in the report.
Then, it's a scholar project. We made a more of 15 pages project titled "Approximation uniforme de fonctions continues : aspects analytique, algébrique et numérique" explaining how works approximation. The initial subject is about Bernstein Polynomials to then find out the reason why that's approximate and to finish on the Remes algorithm, to get the best polynomial approximation (and that's work very well, try on the code !)
If you interested by Remes Alogrithm, a code has been separated to a better handling. And even in 2 langages : Python and Julia.
Julia,
Python,
There is equally, in these 2 langages, an interpolator code : interpolator ; that's compare equidistants nodes and Tchebychev nodes. The historical example :
And to conclude, we write some definitions and try to prove some basics theorems, propositions, lemmas with Lean about algebra and analysis. See the Lean folder.