File:XCubed Fourier Series Approximation n=7,15.svg
| Description |
This is a graph of x3, periodic on (-π,π), with the Fourier Series Approximations drawn in at k=7 (red) and k=15 (blue). The approximation is given by . This is the counterpart to this, which has just the original function drawn in. |
||
| Date | |||
| Source | Own Drawing, Plotted in Mathematica, edited in Inkscape. | ||
| Author | Inductiveload | ||
| Permission (Reusing this file) |
|
||
| Other versions | image:XCubed Periodic (-pi, pi).svg |
Mathematica Code
f[x_] = x^3;
ffour[x_, k_] =
Hold[
Sum[
((-2*(-1)^n*(Pi^2*n^2 - 6))/(n^3))*Sin[n*x],
{n, 1, k}]
];
Plot[
{f[Mod[x, 2 \[Pi], -\[Pi]]],
ReleaseHold[ffour[x, 7]],
ReleaseHold[ffour[x, 15]]},
{x, -2 Pi, 2 Pi}]
Category:Fourier series
Category:Order 15