Korde-tangent-vinkel.
En korde-tangent-vinkel er halvdelen af den bue, den spænder over. De to røde punkter kan flyttes på cirklen.
Figure figure = Position [0,0] Size[x,y] Origin[x/3,y/2] Unit x/12 Color "white";
//Axes axes = Color "black";
//Grid grid = Color "blue";
//Units units = Color "black";
Circle c = Center [0,0] Radius 3 Size 1.5 Color "black";
Point P1 = [0,3] Slider c Size 2.5 Color "red";
Point P2 = [3,0] Slider c Size 2.5 Color "red";
Line korde = Start P1 Dir P2-P1 Size 1.5 Color "blue";
Line tangent = Start P1 Dir P1^ Infinite Size 1.5 Color "blue";
Line r1 = Start [0,0] Dir P1 Size 1.5 Color "blue";
Line r2 = Start [0,0] Dir P2 Size 1.5 Color "blue";
Circle a1 = Center P1 Radius 0.5 From angle(P2-P1) To angle(P1)-pi/2 Size 1.5 Color "black";
Circle a2 = Center [0,0] Radius 0.5 From angle(P2) To angle(P1) Size 1.5 Color "black";
Variable angle1_ = angle(P1)-angle(P2);
Variable angle1 = if angle1_ < 0 then angle1_+2*pi else angle1_ endif;
Variable anglev = angle(P2)+angle1/2;
Label labv = "v" At [cos(anglev),sin(anglev)]*0.6 Offset [5,5] Color "black";
Variable angle2_ = angle(P1)-pi/2-angle(P2-P1);
Variable angle2 = if angle2_ < 0 then angle2_+2*pi else angle2_ endif;
Variable angleu = angle(P2-P1)+angle2/2;
Label labu = "u" At P1+[cos(angleu),sin(angleu)]*0.6 Offset [5,5] Color "black";
Text text = "Korde-tangent-vinkel" Offset [300,370] Color "black";
Tex text1 = "u = \\large{\\frac{v}{2}}" Offset [460,353] Color "black";