Svingninger.
Figuren viser funktionen: $f(x) = a sin( \frac{2\pi}{b} ( x - c ) ) + d$.
a kaldes amplituden, og b kaldes bølgelængden; c og d er forskydninger langs hhv. x- og y-aksen. Læg mærke til, hvordan grafen ændres, når du varierer på de fire parametre.
Figure figure = Position [0,0] Size[x,y*4/5] Origin[x/3,y*2/5] Unit x/18 Color "white";
Axes axes = Color "black";
Grid grid = Color "blue";
Units units = Color "black";
SlidePot A = From 0 To 10 Initial 1 Position [20,y-60] Size [180,0];
Text Atxt = "a = A,2" Offset [210,y-55] Color "black";
SlidePot B = From 1 To 10 Initial 2*pi Position [20,y-30] Size [180,0];
Text Btxt = "b = B,2" Offset [210,y-25] Color "black";
SlidePot C = From -5 To 5 Initial 0 Position [320,y-60] Size [180,0];
Text Ctxt = "c = C,2" Offset [510,y-55] Color "black";
SlidePot D = From -5 To 5 Initial 0 Position [320,y-30] Size [180,0];
Text Dtxt = "d = D,2" Offset [510,y-25] Color "black";
Graph graph = A*sin(2*pi/B*(x-C))+D Size 1 Color "blue";
Tex formula = "a sin( \\frac{2 \\pi}{b} ( x - c ) ) + d" Offset [300,30] Color "black";