Komplekse tal.
Figuren viser de komplekse regneoperationer addition og multiplikation. Du kan ændre på tallene a og b. Læg fx mærke til, at hvis b = i, så er ab analog med tværvektoren til a.
Figure figure = Position [0,0] Size[x,y*4/5] Origin[x/2,y*2/5] Unit x/12 Color "white";
//Axes axes = Color "black";
Grid grid = Color "blue";
Units units = Color "black";
Line x_akse = Start [-6,0] Dir [12,0] Vector Size 1 Color "black";
Line y_akse = Start [0,-3.2] Dir [0,6.4] Vector Size 1 Color "black";
Point a = [-1,1] Free Size 2.5 Color "red";
Point b = [2,0.5] Free Size 2.5 Color "red";
Point summa = a + b Size 2.5 Color "blue";
Point prod = [a:0*b:0-a:1*b:1,a:0*b:1+a:1*b:0] Size 2.5 Color "blue";
Label a_lab = "a" At a Offset [10,-5] Color "black";
Label b_lab = "b" At b Offset [10,-5] Color "black";
Label summa_lab = "a + b" At summa Offset [10,-5] Color "black";
Label prod_lab = "a · b" At prod Offset [10,-5] Color "black";
Line a_line = Start [0,0] Dir a Size 1 Color "black";
Line b_line = Start [0,0] Dir b Size 1 Color "black";
Line summa_line = Start [0,0] Dir summa Size 1 Color "black";
Line prod_line = Start [0,0] Dir prod Size 1 Color "black";
Variable a_0 = a:0;
Variable a_1 = a:1;
Variable b_0 = b:0;
Variable b_1 = b:1;
Variable summa_0 = summa:0;
Variable summa_1 = summa:1;
Variable prod_0 = prod:0;
Variable prod_1 = prod:1;
Text a_text = "a = a_0,2 a_1,2,+ i" Offset [20,350] Color "black";
Text b_text = "b = b_0,2 b_1,2,+ i" Offset [20,380] Color "black";
Text summa_text = "a + b = summa_0,2 summa_1,2,+ i" Offset [320,350] Color "black";
Text prod_text = "a · b = prod_0,2 prod_1,2,+ i" Offset [320,380] Color "black";