Linear Functions: Input Variable x and Output Variable y

Linear Functions: Input Variable x and Output Variable y
Loading the math board and drawing, please wait…
2016-05-03 18:21
This example demonstrates how to plot the graph of a linear function using the input variable x and the output variable y. The core mathematical concepts involved include linear functions, coordinate geometry, and function graphs. Key GeoGebra commands and objects used in the construction are Random, RandomElement, Simplify, Textfield, If, Invert, Coefficients, CoordPointertoAxes6, Min; objects include list1, bneg, bpos, aneg, linf_4, linf_2, apos, linf_3, linf_1, listfn, n, linf, input1x, xval, input2y, count, InputBox1, InputBox2, button1, checkedanswer, answercorrecty, list2, button2, linfinv, yval, text9, text10, text12, list3, answercorrectx, text2, P_{xgiven}, P_{ygiven}, A, B, text5, text6, text7, text8, text14. It is suitable for middle school students and above to review and consolidate their understanding of linear functions.

GeoGebra Commands & Parameters

  1. Random(-4, -1) → bneg
  2. Random(1, 5) → bpos
  3. Random(-5, -1) → aneg
  4. Random(1, 5) → apos
  5. RandomElement(list1) → n
  6. Simplify(Element[listfn, n]) → linf
  7. Random(-4, 4) → xval
  8. Textfield(input1x) → InputBox1
  9. Textfield(input2y) → InputBox2
  10. If(linf(xval) ≟ input2y(0), true, false) → answercorrecty
  11. Invert(linf) → linfinv
  12. Random(-3, 4) → yval
  13. Coefficients(linf) → list3
  14. If(linfinv(yval) ≟ input1x(0), true, false) → answercorrectx
  15. CoordPointertoAxes6(P_{ygiven}) → A, B, text5, text6, text7, text8, text14, u, v
  16. CoordPointertoAxes6(P_{xgiven}) → C, D, text15, text16, text17, text18, text19, w, a
  17. Min(Min[Min[yval, linf(xval)], -3] - abs((Min[yval, linf(xval)] * 0.5)), -3) → yMin