3 ms·
So wavy, when all I wanted was a straight line! I'd like a series that can approximate not just the values of a function, but all its derivatives as well.
by cousin_it 11y ago
So wavy, when all I wanted was a straight line! I'd like a series that can approximate not just the values of a function, but all its derivatives as well.
- jordigh 11y agoFor smooth functions, the Fourier series also approximates the derivative. The waviness you're seeing here is due to the Gibbs' phenomenon, since you're approximating a discontinuous function. This is not a very tragic loss, since the derivative does not even exist where the waviness is the worst.
- cousin_it 11y agoAh, of course, I see. Thanks!
- gp7 11y agohttp://codepen.io/anon/pen/VLrppy http://codepen.io/anon/pen/VLrppy