确定自然数的约数集合
几何画板及绘图内容加载中,请稍等……
① 该范例演示如何通过交互式输入自动列出给定自然数的所有约数,并判断最大公约数。② 核心数学概念涉及数感、因数与倍数、约数集合及最大公约数的计算。③ 作图要点:使用 DivisorsList、Factors 获取约数与因式分解;用 Sequence、Append、Join、Element、Length、Remove、Shuffle 处理列表与随机排序;借助 Polygon、Textfield、Corner 等绘制界面元素;通过 If、Defined 实现验证与反馈逻辑。④ 适用于小学 5‑6 年级(或同等水平)的数感训练、课堂练习与自主探究。
GeoGebra 命令及参数
If(¬Defined[Sort[RemoveUndefined[{input1, input2, input3, input4, input5, input6, input7, input8, input9}]]], {}, Sort[RemoveUndefined[{input1, input2, input3, input4, input5, input6, input7, input8, input9}]]) → listInputAppend(true, Sequence[If[listInput(i) ≟ listInput(i - 1), false, true], i, 2, 12]) → listInputsDifferentJoin(Sequence[Shuffle[listNums], i, 1, 9]) → randomNosForXElement(randomNosForX, Mod[questionCount, 100] + 1) → numXLength(DivisorsList[numX]) → anzahlTeilerDivisorsList(numX) → listSolFactors(numX) →Remove(listSol, listInput) → listSolExtraRemove(listSol, listSolExtra) → listSolCorrectTextfield(input1) → InputBox1Textfield(input2) → InputBox2Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, rectangleCorrectS3, rectangleCorrectS4, rectangleCorrectS2, rectangleCorrectS1Shuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {3, 1, 10, 0, 9, 0, 10, 8, 9, 2, 3, 6, 0, 4, 3, 0, 10, 0, 4, 6, 4, 2, 0, 5, 2, 3, 6, 2, 7, 2, 6, 9, 3, 10, 1, 7, 10, 9, 3, 0, 8, 0, 0, 9, 3, 3, 3, 6, 4, 6, 0, 2, 8, 3, 1, 6, 9, 5, 5, 4, 3, 10, 7, 7, 9, 4, 7, 1, 5, 3, 3, 1, 10, 5, 4, 4, 4, 2, 4, 7, 0, 5, 6, 5, 7, 6, 4, 1, 5, 3, 6, 1, 1, 3, 6, 10, 10, 4, 1, 4}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) → numYwithoutRepeatDefined(Product[Sequence[Element[{input1, input2, input3, input4, input5, input6, input7, input8, input9}, m], m, 1, anzahlTeiler]]) → fixedSequence(Element[{input1, input2, input3, input4, input5, input6, input7, input8, input9}, m], m, 1, anzahlTeiler) → listInputOriginalTextfield(input3) → InputBox3Textfield(input4) → InputBox4Textfield(input5) → InputBox5Textfield(input6) → InputBox6Textfield(input7) → InputBox7Textfield(input8) → InputBox8Textfield(input9) → InputBox9Corner(Text2, 2) → A
AI 绘图提示语参考
请绘制一个交互式图形界面,用于练习约数和最大公约数计算。界面包含9个输入框,用户可输入自然数;下方有文本框显示反馈信息;一个矩形用于展示正确性判断。界面还包含约数列表、质因数分解、随机数生成和重复检查功能。构造顺序为:先创建输入框和文本框,然后添加约数列表和质因数分解,再生成随机数并进行去重处理,最后绘制反馈矩形。图形应清晰展示约数集合和GCD计算过程,适合5-6年级学生使用。
以上提示语为根据原始绘图命令整理而来,仅供参考。