从截距绘制直线

从截距绘制直线
几何画板及绘图内容加载中,请稍等……
2018-11-30 22:27
本范例演示如何使用截距绘制直线。核心数学概念包括直线方程。主要使用了GeoGebra中的Sequence, Polygon, Element, Zip, UnicodeToLetter, DynamicCoordinates, LaTeX, FitPoly, Textfield, Line, TableText等命令。适合初中及以上学生学习直线方程的绘制方法。

GeoGebra 命令及参数

  1. Sequence((i, -2.65), i, 11.5, 12.5, 1) → homeBasePoints
  2. Polygon((-7, -7), (-7, 7), (7, 7), (7, -7)) → viewBox, f, g, h, i
  3. Element(questionList, questionListIndex) → questionNum
  4. Element(B2:B5, questionNum) → currentYIntercept
  5. Element(A2:A5, questionNum) → currentXIntercept
  6. Element(C2:C5, questionNum) → dottedCorrectLine
  7. Zip(A ≟ B, A, usersPreTaskValues, B, {currentXIntercept, currentYIntercept}) → arePreTasksCorrect
  8. UnicodeToLetter(10007) → xmark
  9. UnicodeToLetter(10003) → cmark
  10. DynamicCoordinates(freeA, If[IsInRegion[freeA, viewBox], x(freeA), x(Element[homeBasePoints, 1])], If[IsInRegion[freeA, viewBox], y(freeA), y(Element[homeBasePoints, 1])]) → A
  11. DynamicCoordinates(freeB, If[IsInRegion[freeB, viewBox], x(freeB), x(Element[homeBasePoints, 2])], If[IsInRegion[freeB, viewBox], y(freeB), y(Element[homeBasePoints, 2])]) → B
  12. LaTeX("\text{Points:}") → pointsLabel
  13. LaTeX("\text{Please plot all points.}") → feedbackPlotAllPoints
  14. FitPoly(usersPoints, 1) → usersLine
  15. Element(D2:D5, questionNum) → displayEquation
  16. Textfield(textPreTask1) → ansBoxPreTask1
  17. Textfield(textPreTask2) → ansBoxPreTask2
  18. Zip("\vphantom{\dfrac{\dfrac{1}{2}}{\frac{3}{4}}}" + (If[¬A, B, ""]), A, arePreTasksCorrect, B, {("x\text{-intercept}=" * currentXIntercept), ("y\text{-intercept}=" * currentYIntercept)}) → hints
  19. Line((A2, 0), (0, B2)) → C2
  20. Line((A3, 0), (0, B3)) → C3
  21. Line((A4, 0), (0, B4)) → C4
  22. Line((A5, 0), (0, B5)) → C5
  23. TableText({hints}, "v") → preTaskLabelHint
  24. LaTeX("\text{To find the \(x\)-intercept, substitute\\\(y=0\) into \(" + displayEquation + "\) and solve for \(x\).\\To find the \(y\)-intercept, substitute\\\(x=0\) into \(" + displayEquation + "\) and solve for \(y\).}") → feedbackPreTask
  25. LaTeX("\text{\textbf{Question: }Graph the linear relation by \textbf{first} calculating the \(x\)- and \(y\)-intercepts.\\\textbf{Instructions: }Determine the intercepts. Then plot the intercepts by dragging points onto\\the grid.}") → TEXT
  26. TableText({{"\cellcolor{#ffcc80}{x\text{-intercept value}}"}, {"\vphantom{\tfrac{1}{2}}" + currentXIntercept}, {"\cellcolor{#ffcc80}{y\text{-intercept value}}"}, {"\vphantom{\tfrac{1}{2}}" + currentYIntercept}}, "|_c") → preTaskLabel

AI 绘图提示语参考

请画出一条直线,首先找到它的x轴和y轴截距。x轴截距是当y=0时直线与x轴的交点,y轴截距是当x=0时直线与y轴的交点。根据给定的x轴截距和y轴截距,拖动点到网格上标出这两个截距,然后连接这两个点画出直线。
以上提示语为根据原始绘图命令整理而来,仅供参考。