线性函数练习(学生版)
几何画板及绘图内容加载中,请稍等……
本范例演示线性函数图像(直线)的动态生成与学生自主练习,通过“重置”与“下一关”按钮让学习者在自选难度下反复识别斜率与截距。核心数学概念包括一次函数解析式、图像与代数的对应、斜率、y轴截距以及直线在坐标平面上的位置关系。作图要点基于构造摘要,使用了 RandomElement、Random 生成随机参数,Line 绘制直线,Slope 计算斜率,FractionText 显示分数形式,Text 与 Textfield 建立交互输入框,If 实现关卡判断逻辑,并借助 Cell、a、b、ActualLevel、MaxLevel、LevelCount、LevelTotal 等对象管理关卡进度与状态。适合初中阶段(七年级至九年级)函数单元课堂练习或课后自测,也可用于高中复习直线方程基础。
GeoGebra 命令及参数
RandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8}) → aRandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8}) → bRandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8}) → cRandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8}) → dLine(G, H) → nLine(E, B) → kLine(A, B) → eLine(C, D) → hRandom(1, 20) → n1Random(1, 20) → n2Random(1, 20) → n3Random(1, 20) → n4Random(1, 20) → n5Random(1, 20) → nxCell(2, ActualLevel + 1) → LevelTotalTextfield(AnswerNum) → inputBox1If(e ≟ h ∧ g ∧ (C ≠ D), true, false) → C2If(e ≟ h ∧ g ∧ ActualLevel ≟ 2, true, false) → C3If(e ≟ j ∧ ActualLevel ≟ 3 ∧ g, true, false) → C4If(e ≟ j ∧ ActualLevel ≟ 4 ∧ g, true, false) → C5If(k ≟ j ∧ ActualLevel ≟ 5 ∧ g, true, false) → C6If(k ≟ j ∧ ActualLevel ≟ 6 ∧ g, true, false) → C7If(j ≟ n ∧ ActualLevel ≟ 7 ∧ g, true, false) → C8FractionText(abs(y(B) / x(A))) → text1If(y(B) < 0, "-", "+") → Text3If(y(B) / x(A) > 0, "-", "") → text4Textfield(j) → inputBox2FractionText(abs(y(B) / x(A))) → absslopeSlope(k) → mFractionText(abs(m)) → text8Text(If[m < 0, "-", ""]) → text9If((C2 ≟ false ∧ ActualLevel ≟ 1 ∨ C3 ≟ false ∧ ActualLevel ≟ 2 ∨ C4 ≟ false ∧ ActualLevel ≟ 3 ∨ C5 ≟ false ∧ ActualLevel ≟ 4 ∨ C6 ≟ false ∧ ActualLevel ≟ 5 ∨ C7 ≟ false ∧ ActualLevel ≟ 6 ∨ C8 ≟ false ∧ ActualLevel ≟ 7) ∧ g, true, false) → AnswerWrongIf(C2 ≟ true ∧ ActualLevel ≟ 1 ∨ C3 ≟ true ∧ ActualLevel ≟ 2 ∨ C4 ≟ true ∧ ActualLevel ≟ 3 ∨ C5 ≟ true ∧ ActualLevel ≟ 4 ∨ C6 ≟ true ∧ ActualLevel ≟ 5 ∨ C7 ≟ true ∧ ActualLevel ≟ 6 ∨ C8 ≟ true ∧ ActualLevel ≟ 7, true, false) → AnswerCorrectRandomElement({-8, -7, -6, -5, -4, -3, -2, -1, 1, 2, 3, 4, 5, 6, 7, 8}) → o