Potensfunktion.
Figuren viser potensfunktionen med eksponent a. Prøv at variere a og se, hvordan grafen ændrer sig.
Figure figure = Position [0,0] Size[x,y*13/16] Origin[x/8,y*3/4] Unit x/12 Color "white";
Axes axes = Color "black";
Grid grid = Color "blue";
Units units = Color "black";
SlidePot a = From -4 To 4 Initial 2 Position [20,y-20] Size [300,0];
Tex descr = "y = x^a" Offset [20,y-60] Color "black";
Text atxt = "a = a,2" Offset [350,y-15] Color "blue";
Graph eks = if x >= 0 then x^a endif Size 1 Color "red";