从截距绘制直线
几何画板及绘图内容加载中,请稍等……
本范例演示如何使用截距绘制直线。核心数学概念包括直线方程。主要使用了GeoGebra中的Sequence, Polygon, Element, Zip, UnicodeToLetter, DynamicCoordinates, LaTeX, FitPoly, Textfield, Line, TableText等命令。适合初中及以上学生学习直线方程的绘制方法。
GeoGebra 命令及参数
Sequence((i, -2.65), i, 11.5, 12.5, 1) → homeBasePointsPolygon((-7, -7), (-7, 7), (7, 7), (7, -7)) → viewBox, f, g, h, iElement(questionList, questionListIndex) → questionNumElement(B2:B5, questionNum) → currentYInterceptElement(A2:A5, questionNum) → currentXInterceptElement(C2:C5, questionNum) → dottedCorrectLineZip(A ≟ B, A, usersPreTaskValues, B, {currentXIntercept, currentYIntercept}) → arePreTasksCorrectUnicodeToLetter(10007) → xmarkUnicodeToLetter(10003) → cmarkDynamicCoordinates(freeA, If[IsInRegion[freeA, viewBox], x(freeA), x(Element[homeBasePoints, 1])], If[IsInRegion[freeA, viewBox], y(freeA), y(Element[homeBasePoints, 1])]) → ADynamicCoordinates(freeB, If[IsInRegion[freeB, viewBox], x(freeB), x(Element[homeBasePoints, 2])], If[IsInRegion[freeB, viewBox], y(freeB), y(Element[homeBasePoints, 2])]) → BLaTeX("\text{Points:}") → pointsLabelLaTeX("\text{Please plot all points.}") → feedbackPlotAllPointsFitPoly(usersPoints, 1) → usersLineElement(D2:D5, questionNum) → displayEquationTextfield(textPreTask1) → ansBoxPreTask1Textfield(textPreTask2) → ansBoxPreTask2Zip("\vphantom{\dfrac{\dfrac{1}{2}}{\frac{3}{4}}}" + (If[¬A, B, ""]), A, arePreTasksCorrect, B, {("x\text{-intercept}=" * currentXIntercept), ("y\text{-intercept}=" * currentYIntercept)}) → hintsLine((A2, 0), (0, B2)) → C2Line((A3, 0), (0, B3)) → C3Line((A4, 0), (0, B4)) → C4Line((A5, 0), (0, B5)) → C5TableText({hints}, "v") → preTaskLabelHintLaTeX("\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\).}") → feedbackPreTaskLaTeX("\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.}") → TEXTTableText({{"\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轴截距,拖动点到网格上标出这两个截距,然后连接这两个点画出直线。
以上提示语为根据原始绘图命令整理而来,仅供参考。