Cirkler.
Figuren viser en cirkel med centrum i (x0, y0) og radius r. Du kan variere parametrene x0, y0 og r.
Figure figure = Position [0,0] Size[x,y*13/16] Origin[x/3,y*7/16] Unit x/12 Color "white";
Axes axes = Color "black";
Grid grid = Color "blue";
Units units = Color "black";
SlidePot x0 = From -4 To 12 Initial 0 Position [20,y-60] Size [150,0];
SlidePot y0 = From -2 To 6 Initial 0 Position [20,y-40] Size [150,0];
SlidePot r = From 0 To 7 Initial 1 Position [20,y-20] Size [150,0];
Text x0_txt = "x0 = x0,2" Offset [190,y-55] Color "blue" Style "font-family:MJX_MATH;font-size:120%;";
Text y0_txt = "y0 = y0,2" Offset [190,y-35] Color "blue" Style "font-family:MJX_MATH;font-size:120%;";
Text r_txt = "r = r,2" Offset [190,y-15] Color "blue" Style "font-family:MJX_MATH;font-size:120%;";
Circle circle = Center [x0,y0] Radius r Size 1 Color "blue";
Variable c1 = 2*x0;
Variable c2 = 2*y0;
Variable c3 = x0*x0+y0*y0-r*r;
Text formula1 = "(x x0,2,+)2 + (y y0,2,+)2 = r,22" Offset [300,y-50] Color "black" Style "font-family:MJX_MATH;font-size:120%;";
Text formula2 = "x2 c1,2,+·x + y2 c2,2,+·y c3,2,+ = 0" Offset [300,y-20] Color "black" Style "font-family:MJX_MATH;font-size:120%;";