Beispiele zu Fourier-Reihen
Initialisierung von allgemeinen Funktionen
<< Graphics`Animation`
B[f_, n_, x_]:= (2 / Pi) Integrate[f[x] Sin[n x], {x, 0, Pi}]
sinApprox[f_, n_, x_] := Sum[B[f, k, x] Sin[k x], {k, 1, n}]
Stufenfunktion
step[x_] := If[x > 0, 1, -1]
sinApprox[1&, 5, x]
steptable = Table[ Plot[Evaluate[{step[x], sinApprox[1&, i, x]}],
{x, -Pi, Pi},
DisplayFunction -> Identity,
PlotStyle -> {Hue[1], Hue[0.7]},
Axes -> False,
PlotLabel -> ToString[i]<>". Partialsumme"],
{i, 1, 100, 5}];
ShowAnimation[steptable, DisplayFunction -> $DisplayFunction]
Saegezahn
saege[x_] := x
sinApprox[x&, 5, x]
saegetable = Table[ Plot[Evaluate[{saege[x], sinApprox[x&, i, x]}],
{x, -Pi, Pi},
DisplayFunction -> Identity,
PlotStyle -> {Hue[1], Hue[0.7]},
Axes -> False,
PlotLabel -> ToString[i]<>". Partialsumme"],
{i, 1, 100, 5}];
ShowAnimation[saegetable, DisplayFunction -> $DisplayFunction]
Fast Fourier Transformation
FTDaten = Fourier[Daten];
ListPlot[Abs[FTDaten],
PlotRange->All, Prolog->AbsolutePointSize[3]]
TrunkFTDaten = Chop[FTDaten, 1.0];
Ergebnis = InverseFourier[TrunkFTDaten];
invfour = ListPlot[Ergebnis, PlotJoined->True, PlotStyle -> {Hue[0.7]},
DisplayFunction->Identity];
Show[orig,invfour,glatt,DisplayFunction-> $DisplayFunction]
| Created by Mathematica (November 13, 2007) |