// // GeoScript-Datei vectoraddition.script // // Systemvariablen // =============== // snapToGrid = true showGrid = true gridSize = 10 // Figurenbeschreibung // =================== // e[1] = O; point; fixed; 0.0, 0.0; "hidden" e[2] = _xe; point; fixed; 1.0, 0.0; "hidden" e[3] = _ye; point; fixed; 0.0, 1.0; "hidden" e[4] = _KO; point; coordSystem; O, O, _xe, O, _ye, 1000, 1000, 1000, 1000; "hidden" e[5] = xa; line; straightLine; O, _xe; "hidden" e[6] = ya; line; straightLine; O, _ye; "hidden" e[7] = C1; point; dragable; -5.0, -1.0; "hideLabel" e[8] = C2; point; dragable; -8.0, -1.0; "hideLabel" e[9] = c; line; vector; C1, C2; e[10] = A1; point; dragable; 6.0, -1.0; "hideLabel" e[11] = A2; point; functionDepend; "coordinateX(A1)+4", "coordinateY(A1)+3"; "hideLabel" e[12] = u; measure;controller; 2.0, 0.05, -5.0, 5.0, 150, "u = ", ""; e[13] = ua; point; functionDepend; "coordinateX(A1)+calculate(u)*(coordinateX(A2)-coordinateX(A1))", "coordinateY(A1)+calculate(u)*(coordinateY(A2)-coordinateY(A1))"; e[14] = v1; line; vector; A1, ua; 0;0;gray;0; e[15] = a; line; vector; A1, A2; e[16] = v; measure;controller; 1.0, 0.05, -5.0, 5.0, 150, "v = ", ""; e[17] = B1; point; dragable; 3.0, 1.0; "hideLabel" e[18] = B2; point; functionDepend; "coordinateX(B1)-2", "coordinateY(B1)+3"; "hideLabel" e[19] = vb; point; functionDepend; "coordinateX(B1)+calculate(v)*(coordinateX(B2)-coordinateX(B1))", "coordinateY(B1)+calculate(v)*(coordinateY(B2)-coordinateY(B1))"; e[20] = v2; line; vector; B1, vb; 0;0;gray;0; e[21] = b; line; vector; B1, B2; // Einheitslänge zeichnen e[22] = P1; point; fixed; 3.0, -8.0; "hidden" e[23] = P2; point; fixed; 2.0, -8.0; "hidden" e[24] = 1; line; connect; P1, P2; e[25] = P3; point; fixed; 2.0, -7.8; "hidden" e[26] = P4; point; fixed; 2.0, -8.2; "hidden" e[27] = l1; line; connect; P3, P4; "hideLabel" e[28] = P5; point; fixed; 3.0, -7.8; "hidden" e[29] = P6; point; fixed; 3.0, -8.2; "hidden" e[30] = l2; line; connect; P5, P6; "hideLabel" // Auswertungsbutton e[31] = b1; measure;button; "Evaluation","evaluate"; // // Antwortanalyse // ============== // MAX_ANSWER = 0 condition[1] = "calculate(u) = -1" condition[2] = "calculate(v) = 2" condition[3] = "XVector(C1,C2) = -8" condition[4] = "YVector(C1,C2) = 3" condition[5] = "XVector(C1,C2) = 8" condition[6] = "YVector(C1,C2) = -3" key = "condition[1] AND condition[2] AND condition[3] AND condition[4]" comment[1] = " Right. /n" key = "NOT(condition[1]) AND NOT(condition[2])" comment[1] = " Your answer is not right. /n The values u and v are wrong. /n Just try again. " key = "NOT(condition[1]) AND condition[2]" comment[1] = " Your answer is partly right. /n The value v is right, but u is wrong. /n Just try again. " key = "NOT(condition[2]) AND condition[1]" comment[1] = " Your answer is partly right. /n The value u is right, but v is wrong. /n Just try again. " key = "condition[5] AND condition[6]" comment[1] = " Your answer is partly right. /n The length of vector c is right, /n but the direction is wrong. /n Just try again. " key = "condition[1] AND condition[2] AND NOT(condition[3] AND condition[4])" comment[1] = " Your answer is partly right. /n The values u and v are right, /n but vector c is wrong. /n Just try again. " key = "1" comment[1] = " Your answer is not right. /n Just try again. "