互质还是非互质?——最大公约数互动练习
几何画板及绘图内容加载中,请稍等……
① 本范例是一个互动练习,通过随机生成的多组数字对,让学生判断两个数是否互质(即最大公约数是否为1)。② 核心数学概念是因数、倍数、最大公约数(GCD)以及互质数的判定,属于数论基础。③ 作图要点:使用GeoGebra的Polygon、Midpoint、IsInRegion等命令构建交互界面,通过Textfield输入答案,利用Shuffle、Element、Append、Remove等命令实现题目随机生成与状态管理,并用ColorText对象对结果进行颜色反馈。④ 适合小学5-6年级学生,用于课堂练习或家庭作业,帮助学生掌握求最大公约数的计算方法并理解互质概念。
GeoGebra 命令及参数
Polygon(Q1E1, Q1E2, 4) → Q1, q1_1, q1_2, q1_3, q1_4, Q1E3, Q1E4Polygon(Q2E1, Q2E2, 4) → Q2, q2_1, q2_2, q2_3, q2_4, Q2E3, Q2E4Polygon(Q3E1, Q3E2, 4) → Q3, q3_4, q3_1, q3_2, q3_3, Q3E3, Q3E4Polygon(Q4E1, Q4E2, 4) → Q4, q4_4, q4_2, q4_1, q4_3, Q4E3, Q4E4Midpoint(Corner[T1530, 1], Corner[T1530, 3]) → Pos1530IsInRegion(Pos1530, Q4) → Correct1530Midpoint(Corner[T1814, 1], Corner[T1814, 3]) → Pos1814IsInRegion(Pos1814, Q2) → Correct1814Midpoint(Corner[T1830, 1], Corner[T1830, 3]) → Pos1830IsInRegion(Pos1830, Q4) → Correct1830Midpoint(Corner[T612, 1], Corner[T612, 3]) → Pos612IsInRegion(Pos612, Q4) → Correct612Midpoint(Corner[T820, 1], Corner[T820, 3]) → Pos820IsInRegion(Pos820, Q3) → Correct820Midpoint(Corner[T1826, 1], Corner[T1826, 3]) → Pos1826IsInRegion(Pos1826, Q2) → Correct1826Midpoint(Corner[T530, 1], Corner[T530, 3]) → Pos530IsInRegion(Pos530, Q2) → Correct530Midpoint(Corner[T1215, 1], Corner[T1215, 3]) → Pos1215IsInRegion(Pos1215, Q2) → Correct1215Midpoint(Corner[T2628, 1], Corner[T2628, 3]) → Pos2628IsInRegion(Pos2628, Q2) → Correct2628Midpoint(Corner[T610, 1], Corner[T610, 3]) → Pos610IsInRegion(Pos610, Q2) → Correct610Midpoint(Corner[T914, 1], Corner[T914, 3]) → Pos914IsInRegion(Pos914, Q1) → Correct914Midpoint(Corner[T1727, 1], Corner[T1727, 3]) → Pos1727IsInRegion(Pos1727, Q1) → Correct1727Midpoint(Corner[T1219, 1], Corner[T1219, 3]) → Pos1219IsInRegion(Pos1219, Q1) → Correct1219Textfield(aInput) → InputBox1Textfield(bInput) → InputBox2Polygon(PtopLeftCornerFeedback, PtopRightCornerFeedback, PbottomRightCornerFeedback, PbottomLeftCornerFeedback) → rectangleCorrect, ptopleftcornerfeedback, ptoprightcornerfeedback, pbottomrightcornerfeedback, pbottomleftcornerfeedbackShuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForX, {0, 6, 1, 4, 4, 7, 3, 2, 2, 8, 0, 3, 4, 10, 0, 1, 9, 0, 8, 3, 1, 10, 8, 7, 2, 10, 10, 8, 2, 9, 6, 10, 7, 10, 5, 0, 4, 0, 7, 0, 1, 0, 3, 3, 3, 7, 0, 1, 0, 8, 7, 5, 7, 6, 2, 5, 8, 0, 6, 8, 1, 4, 10, 6, 5, 0, 1, 6, 3, 2, 8, 7, 7, 1, 0, 4, 4, 7, 5, 5, 8, 0, 2, 7, 3, 9, 9, 0, 5, 4, 7, 3, 6, 8, 10, 10, 8, 1, 4, 5}Element(randomNosForX, Mod[questionCount, 100] + 1) → numXShuffle(Sequence[Random[0, 10], i, 1, 100]) → randomNosForY, {1, 4, 5, 7, 9, 0, 2, 5, 0, 8, 6, 1, 4, 10, 5, 1, 1, 9, 5, 9, 8, 3, 1, 1, 6, 7, 8, 9, 9, 2, 5, 3, 9, 3, 1, 4, 6, 4, 8, 10, 0, 0, 4, 9, 5, 0, 0, 7, 0, 1, 4, 10, 9, 10, 7, 6, 10, 1, 6, 4, 7, 8, 8, 2, 5, 5, 10, 1, 8, 8, 5, 7, 4, 4, 6, 10, 4, 10, 3, 0, 1, 5, 10, 9, 7, 8, 3, 9, 0, 3, 0, 10, 5, 4, 2, 8, 6, 5, 3, 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) → numYwithoutRepeatDefined((aInput * bInput)) → fixed
AI 绘图提示语参考
一个互动练习界面,顶部显示两个随机生成的整数供学生在两个输入框中查看,下方排列四个正方形答题区域,分别对应“互质”与“非互质”两种选择;学生点击或将答案拖入某个区域后,系统通过检测文本中心点所在区域判断对错,并在一个反馈矩形中以颜色文字给出即时提示。每次刷新会从预设的无重复随机序列中取出新的数对,保证题目不重复。
以上提示语为根据原始绘图命令整理而来,仅供参考。