Writing Linear Equations Given 2 Points (y-int = integer)
Loading the math board and drawing, please wait…
This example demonstrates how to write a linear equation given two points, with the y-intercept being an integer. It involves linear equations and coordinate geometry. Commands used include Sequence, Union, RandomElement, FractionText, Random, Line, and Textfield. Suitable for middle school and above students for practice and learning.
GeoGebra Commands & Parameters
Sequence(i, i, -10, 10, 1) → ylist, {-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}Sequence(i, i, -4, -1, 1) → Xleftfinal, {-4, -3, -2, -1}Sequence(i, i, 1, 4, 1) → Xrightfinal, {1, 2, 3, 4}Union(Xleftfinal, Xrightfinal) → XlistfinalSequence(i, i, -10, 10, 1) → xlist, {-10, -9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}RandomElement(Xlistfinal) → aSequence(i, i, a + 1, 10, 1) → xlist2, {-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}Sequence(i, i, -10, a - 1, 1) → xlist1, {-10, -9, -8, -7, -6, -5, -4, -3}Union(xlist1, xlist2) → list1RandomElement(list1) → cRandomElement(ylist) → bRandomElement(ylist) → dFractionText(e) → text1FractionText(g(0)) → text8Random(-20, 20) → hRandomElement(scalarlist1) → jLine(A, B) → mRandomElement(list2) → scFractionText(Slope[m]) → text10Union(xlist1, xlist2) → list3Textfield(f) → InputBox1
AI Drawing Prompt Reference
Draw a coordinate plane with a straight line passing through two randomly chosen points, where the y-intercept is an integer. First, randomly select an integer x-coordinate for the first point from the set {-4,-3,-2,-1,1,2,3,4}, then choose a different integer x-coordinate for the second point from the remaining integers between -10 and 10 (excluding the first x). Randomly assign integer y-coordinates from -10 to 10 to both points. Connect the two points with a line, and display the slope as a fraction, the y-intercept as a fraction, and the coordinates of both points. Also include an input text field for the user to type the equation of the line for practice.
The prompt above was compiled from the original drawing commands and is for reference only.