已知两点求直线方程 by Lew W. S.
几何画板及绘图内容加载中,请稍等……
本范例演示如何通过两点确定直线方程。核心数学概念包括直线方程、解析几何。使用了Line, Intersect, Angle, Distance, Midpoint, Segment, Polygon, Textfield, If, Random, Function, CurveCartesian等GeoGebra命令。适合初中及以上学生学习直线方程的构造与应用。
GeoGebra 命令及参数
Line(C, B) → aIntersect(c, b) → NAngle(B, N, C) → αDistance(N, B) → distanceNBMidpoint(N, B) → MidptNBMidpoint(C, N) → MidptCNDistance(C, N) → distanceCNSegment(C, N) → dSegment(N, B) → eIntersect(g, f) → SSegment(B, S) → hSegment(S, P) → iMidpoint(S, P) → MidptSPMidpoint(B, S) → MidptBSPolygon(C, N, B) → poly1, j, k, lPolygon(B, S, P) → poly2, p, b_1, sTextfield(gradientanswer) → inputBox1Textfield(yinterceptanswer) → inputBox2If(yinterceptcorrect, "Well done!", "Oops, check your workings, try again!") → text16If(gradientcorrect, "Well done!", "Oops, check your workings, try again!") → text15Random(-4, 6) → P_1yRandom(-4, 6) → P_1xRandom(-4, 8) → P_2xRandom(-4, 8) → P_2yIf(P_1y < P_2y, (P_2x, P_2y), (P_1x, P_1y)) → B_rIf(¬(P_1y < P_2y), (P_2x, P_2y), (P_1x, P_1y)) → C_rIf(x(B) ≟ x(C), true, false) → verticallineBCTextfield(gradientanswertext) → inputBox1textFunction(((-(x(a) / y(a))) * x) - z(a) / y(a), Min[x(B), x(C)] - 15, Max[x(B), x(C)] + 15) → f_lCurveCartesian(x(B), t_y, t_y, y(C) - 15, y(B) + 15) → BCverticalTextfield(equationanswertext) → inputBox3textIf(gradientcorrect, "Well done!", "What is the rise/run of the vertical line?") → text15verticallineBCIf(yinterceptcorrect, "Well done!", "Are you sure the line cuts the y axis?!") → text16verticallineBCTextfield(yinterceptanswertext) → inputBox2textTextfield(f_{ans}) → inputBox3
AI 绘图提示语参考
请绘制一个包含两个随机点的图形。随机生成两个点B和C,并画出通过B和C的直线。计算这两个点之间的交点N、角度α、距离以及中点。然后构造线段、平行线、垂直线、三角形和矩形等几何对象。最后给出直线的方程。
以上提示语为根据原始绘图命令整理而来,仅供参考。