用 GeoGebra 计算最大公约数(不使用质因数分解)
几何画板及绘图内容加载中,请稍等……
① 本示例展示了如何使用 GeoGebra 计算两个自然数的最大公约数(GCD),无需进行质因数分解。② 核心数学概念包括数感、因数与倍数,以及欧几里得算法。③ 构造中使用了交互式输入字段,借助 Sequence 和 Sort 命令生成有序的除数列表,利用 DivisorsList、Factors 等命令提取除数,并通过 Polygon、SpeechBubbleRight 等几何对象展示结果。关键 GeoGebra 命令包括 Sequence、Sort、DivisorsList、Factors、Unique、Element、Append 等,对象如 lInput、mInput、nInput、ggTInput 等管理用户输入和中间计算。④ 本活动适合小学高年级(5‑6年级),符合相关课程目标,有助于学生识别和确定自然数的除数,并通过计算方法求出最大公约数。
GeoGebra 命令及参数
DivisorsList(ListeZahlen2(exNum)) → T2Factors(ListeZahlen2(exNum)) →DivisorsList(ListeZahlen1(exNum)) → T1Factors(ListeZahlen1(exNum)) →Sort(RemoveUndefined[EingabeTeiler2]) → EingabeTeilerGeordnet2Sort(RemoveUndefined[EingabeTeiler1]) → EingabeTeilerGeordnet1Sequence(1, maxExNum, 1) → listeExValTextfield(aInput) → InputBox1Textfield(bInput) → InputBox2Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedbackShuffle(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}Element(randomNosForX, Mod[questionCount, 100] + 1) → numXShuffle(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}Element(randomNosForY, Mod[questionCount, 100] + 1) → numYAppend(true, Sequence[If[randomNosForX(i) ≟ randomNosForX(i - 1), false, true], i, 2, 100]) → stayXAppend(true, Sequence[If[randomNosForY(i) ≟ randomNosForY(i - 1), false, true], i, 2, 100]) → stayYRemove(Sequence[If[stayX(i), randomNosForX(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForXwithoutRepeatRemove(Sequence[If[stayY(i), randomNosForY(i), 0], i, 1, 100], Sequence[0, i, 1, 100]) → randomNosForYwithoutRepeatElement(randomNosForXwithoutRepeat, Mod[questionCount, Length[randomNosForXwithoutRepeat]] + 1) → numXwithoutRepeatElement(randomNosForYwithoutRepeat, Mod[questionCount, Length[randomNosForYwithoutRepeat]] + 1) → numYwithoutRepeatTextfield(cInput) → InputBox3Textfield(dInput) → InputBox4Textfield(eInput) → InputBox5Textfield(fInput) → InputBox6Textfield(gInput) → InputBox7Textfield(hInput) → InputBox8Textfield(iInput) → InputBox9Textfield(jInput) → InputBox10Textfield(ggTInput) → ggTInputBoxTextfield(kInput) → InputBox11Textfield(lInput) → InputBox12Textfield(mInput) → InputBox13Textfield(nInput) → InputBox14Textfield(oInput) → InputBox15Textfield(pInput) → InputBox16Textfield(qInput) → InputBox17Textfield(rInput) → InputBox18Textfield(sInput) → InputBox19Textfield(tInput) → InputBox20SpeechBubbleRight(A, 7, 1.8) → Vieleck1Unique(EingabeTeiler1) → l1Unique(RemoveUndefined[EingabeTeiler1]) → l3DivisorsList(100) → l4Factors(100) →
AI 绘图提示语参考
画一个交互式最大公约数演示图:顶部放两个可编辑的数字输入框供用户填入两个自然数,下方自动列出每个数的所有约数并按从小到大排序,去重后显示为两列整齐的数字列表;中间用一个矩形区域作为反馈框,右侧配一个指向矩形的对话气泡,实时显示计算出的最大公约数;底部再提供多个输入框供学习者逐步填写欧几里得算法的中间结果。同时在旁边生成两组不重复的随机数对,作为练习题的自动出题素材。
以上提示语为根据原始绘图命令整理而来,仅供参考。