斜截式直线作图

斜截式直线作图
几何画板及绘图内容加载中,请稍等……
2019-11-08 12:13
本范例演示如何使用斜截式方程作图。核心数学概念包括直线方程、斜率和截距。通过使用GeoGebra命令如Sequence、Line、RandomElement等,学生可以理解直线方程的构造过程。适合初中及以上学生学习直线方程和几何作图。

GeoGebra 命令及参数

  1. Sequence(-12, -1) → negInt
  2. Sequence(1, 12) → posInt
  3. Line(A, B) → myLine
  4. Sequence(-8, 8) → possYInt
  5. RandomElement(If[reset ≟ true, possYInt]) → b
  6. LaTeX(If[m ≟ 1, "", If[m ≟ -1, "-", If[m > 0, FractionText[m], "-" + (FractionText[abs(m)])]]]) → slope
  7. LaTeX(If[b ≟ 0, "y=" + slope + "x", If[b > 0, "y=" + slope + "x+" + b, "y=" + slope + "x" + b]]) → graphLine
  8. Vector((x(A), y(B)), B) → run
  9. Vector(A, (x(A), y(B))) → rise
  10. Segment(A, (x(A), y(B))) → riseLabel
  11. Segment((x(A), y(B)), B) → runLabel
  12. If(checked ≟ true ∧ myLine ≟ correctLine, true, false) → isCorrect
  13. If(qCount ≟ 0, 0, (Score * 100 / ((qCount * pointsPerQ)))) → percentCorrect
  14. Text(RandomElement[CorrectTexts]) → Correct
  15. Text(If[Intersect[myLine, y = 0] ≟ (b, 0), Element[FeedbackTexts, 3], If[Slope[myLine] ≟ mReciprocal, Element[FeedbackTexts, 1], If[Slope[myLine] ≟ (-m), Element[FeedbackTexts, 2], RandomElement[IncorrectTexts]]]]) → Incorrect

AI 绘图提示语参考

绘制一条直线,该直线的斜率为-1,y轴截距为随机整数,范围在-8到8之间。首先,创建一个负整数序列和一个正整数序列,然后使用这两个序列中的一个随机数作为y轴截距。接着,使用斜率和y轴截距绘制直线。最后,添加表示斜率的向量和表示y轴截距的点。
以上提示语为根据原始绘图命令整理而来,仅供参考。