用 GeoGebra 计算最大公约数(不使用质因数分解)

用 GeoGebra 计算最大公约数(不使用质因数分解)
几何画板及绘图内容加载中,请稍等……
2022-12-01 18:55
① 本示例展示了如何使用 GeoGebra 计算两个自然数的最大公约数(GCD),无需进行质因数分解。② 核心数学概念包括数感、因数与倍数,以及欧几里得算法。③ 构造中使用了交互式输入字段,借助 Sequence 和 Sort 命令生成有序的除数列表,利用 DivisorsList、Factors 等命令提取除数,并通过 Polygon、SpeechBubbleRight 等几何对象展示结果。关键 GeoGebra 命令包括 Sequence、Sort、DivisorsList、Factors、Unique、Element、Append 等,对象如 lInput、mInput、nInput、ggTInput 等管理用户输入和中间计算。④ 本活动适合小学高年级(5‑6年级),符合相关课程目标,有助于学生识别和确定自然数的除数,并通过计算方法求出最大公约数。

GeoGebra 命令及参数

  1. DivisorsList(ListeZahlen2(exNum)) → T2
  2. Factors(ListeZahlen2(exNum)) →
  3. DivisorsList(ListeZahlen1(exNum)) → T1
  4. Factors(ListeZahlen1(exNum)) →
  5. Sort(RemoveUndefined[EingabeTeiler2]) → EingabeTeilerGeordnet2
  6. Sort(RemoveUndefined[EingabeTeiler1]) → EingabeTeilerGeordnet1
  7. Sequence(1, maxExNum, 1) → listeExVal
  8. Textfield(aInput) → InputBox1
  9. Textfield(bInput) → InputBox2
  10. Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedback
  11. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {4, 2, 6, 7, 10, 2, 4, 3, 2, 0, 8, 5, 7, 1, 2, 8, 1, 9, 9, 0, 2, 9, 0, 4, 9, 1, 7, 3, 1, 0, 9, 2, 9, 1, 0, 2, 6, 1, 6, 7, 0, 5, 8, 7, 6, 0, 9, 7, 2, 6, 9, 0, 7, 3, 2, 9, 8, 5, 3, 0, 5, 8, 2, 0, 7, 5, 10, 10, 10, 9, 10, 3, 3, 3, 9, 5, 6, 4, 0, 7, 2, 10, 1, 6, 1, 0, 9, 1, 4, 1, 6, 7, 6, 4, 10, 6, 4, 2, 7, 5}
  12. Element(randomNosForX, Mod[questionCount, 100] + 1) → numX
  13. Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {5, 6, 6, 0, 10, 7, 8, 3, 2, 6, 6, 0, 9, 0, 0, 1, 5, 6, 8, 2, 8, 2, 8, 6, 3, 2, 7, 6, 8, 9, 7, 5, 3, 3, 0, 8, 2, 1, 6, 3, 10, 6, 8, 3, 9, 5, 6, 4, 1, 2, 10, 5, 4, 9, 10, 1, 1, 3, 1, 10, 9, 3, 0, 9, 2, 9, 2, 8, 3, 9, 8, 4, 1, 10, 10, 9, 10, 8, 0, 10, 2, 2, 3, 6, 4, 0, 3, 6, 1, 0, 10, 10, 0, 0, 10, 10, 5, 0, 5, 0}
  14. Element(randomNosForY, Mod[questionCount, 100] + 1) → numY
  15. Append(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayX
  16. Append(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayY
  17. Remove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeat
  18. Remove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeat
  19. Element(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeat
  20. Element(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeat
  21. Textfield(cInput) → InputBox3
  22. Textfield(dInput) → InputBox4
  23. Textfield(eInput) → InputBox5
  24. Textfield(fInput) → InputBox6
  25. Textfield(gInput) → InputBox7
  26. Textfield(hInput) → InputBox8
  27. Textfield(iInput) → InputBox9
  28. Textfield(jInput) → InputBox10
  29. Textfield(ggTInput) → ggTInputBox
  30. Textfield(kInput) → InputBox11
  31. Textfield(lInput) → InputBox12
  32. Textfield(mInput) → InputBox13
  33. Textfield(nInput) → InputBox14
  34. Textfield(oInput) → InputBox15
  35. Textfield(pInput) → InputBox16
  36. Textfield(qInput) → InputBox17
  37. Textfield(rInput) → InputBox18
  38. Textfield(sInput) → InputBox19
  39. Textfield(tInput) → InputBox20
  40. SpeechBubbleRight(A, 7, 1.8) → Vieleck1
  41. Unique(EingabeTeiler1) → l1
  42. Unique(RemoveUndefined[EingabeTeiler1]) → l3
  43. DivisorsList(100) → l4
  44. Factors(100) →

AI 绘图提示语参考

画一个交互式最大公约数演示图:顶部放两个可编辑的数字输入框供用户填入两个自然数,下方自动列出每个数的所有约数并按从小到大排序,去重后显示为两列整齐的数字列表;中间用一个矩形区域作为反馈框,右侧配一个指向矩形的对话气泡,实时显示计算出的最大公约数;底部再提供多个输入框供学习者逐步填写欧几里得算法的中间结果。同时在旁边生成两组不重复的随机数对,作为练习题的自动出题素材。
以上提示语为根据原始绘图命令整理而来,仅供参考。