使用计数器加减整数
几何画板及绘图内容加载中,请稍等……
①本范例演示使用计数器直观展示整数加减法的运算过程;②涉及核心数学概念包括整数、加减法运算规则、数轴表示;③构造摘要中运用了 Flatten, Sequence, If, Textfield, SelectedElement 等命令,以及 n2text, addStep2mover, subStep1mover 等对象,实现了动态计数器和文本显示;④适合初中数学教学,帮助学生理解抽象的加减法运算。
GeoGebra 命令及参数
Flatten(Sequence[Sequence[Point[{i, (-j)}], i, 1 / 2, 1 / 2 + floor(sqrt(If[n1 < 0, (-n1) + n1AddedNegative, n1AddedNegative])), 1], j, 1 / 2, 1 / 2 + floor(sqrt(If[n1 < 0, (-n1) + n1AddedNegative, n1AddedNegative])), 1]) → negativePointsSequence(Max[abs(x(Element[negativePoints, i])), abs(y(Element[negativePoints, i]))], i, 1, Length[negativePoints]) → negativeSorterIf(Length[negativePoints] > 0, First[Sort[negativePoints, negativeSorter], Max[(-n1) + n1AddedNegative, n1AddedNegative]], {}) → sortedNegativePointsTextfield(n1text) → InputBox1Textfield(n2text) → InputBox2Flatten(Sequence[Sequence[Point[{i, j}], i, 1 / 2, 1 / 2 + floor(sqrt(If[n1 > 0, n1 + n1AddedPositive, n1AddedPositive])), 1], j, 1 / 2, 1 / 2 + floor(sqrt(If[n1 > 0, n1 + n1AddedPositive, n1AddedPositive])), 1]) → positivePointsSequence(Max[abs(x(Element[positivePoints, i])), abs(y(Element[positivePoints, i]))], i, 1, Length[positivePoints]) → positiveSorterIf(Length[positivePoints] > 0, First[Sort[positivePoints, positiveSorter], Max[n1 + n1AddedPositive, n1AddedPositive]], {}) → sortedPositivePointsIf(Length[sortedNegativePoints] > 0, Sequence[Circle[Element[sortedNegativePoints, i], 0.4], i, 1, Length[sortedNegativePoints]], {}) → negativeCirclesIf(Length[sortedPositivePoints] > 0, Sequence[Circle[Element[sortedPositivePoints, i], 0.4], i, 1, Length[sortedPositivePoints]], {}) → positiveCirclesIf((n1 * n2) < 0, Min[abs(n1), abs(n2)], 0) → extraZerosSelectedElement(addOrSub) → operationTextfield(n1Text) → InputBox3If(operation ≟ "+", n1 + n2, n1 - n2) → answerIf(Max[{n1, n2, answer}] > 0, Max[{n1, n2, answer}], 0) → highestPositiveIf(Min[{n1, n2, answer}] > 0, 0, Min[{n1, n2, answer}]) → lowestNegativeIf(highestPositive ≟ lowestNegative, 10, ceil(sqrt(highestPositive))) → topSequence(Text["+", Element[sortedPositivePoints, i] - (right / 50, (top + bottom) / 40)], i, 1, Length[sortedPositivePoints]) → plusSignsSequence(Text["-", Element[sortedNegativePoints, i] - (right / 65, (top + bottom) / 40)], i, 1, Length[sortedNegativePoints]) → minusSigns
AI 绘图提示语参考
画一个用于演示整数加减法的交互式图形,包含正负计数器点、操作选择器、输入框和结果显示。正负计数器点根据输入的整数动态生成,并按大小排序,用圆圈表示。操作选择器用于选择加法或减法,根据输入整数和选择的操作计算结果,并在数轴上用加号或减号标记计数器点。输入框显示输入的整数,结果显示计算结果,整体布局清晰直观,适合教学使用。
以上提示语为根据原始绘图命令整理而来,仅供参考。