Histogram Reflex Game

Histogram Reflex Game
Loading the math board and drawing, please wait…
2018-05-24 02:15
This example demonstrates a histogram reflex game involving histograms and symmetry. Using GeoGebra commands such as Histogram, Segment, and Polygon, it constructs histograms for reaction practice. Suitable for middle school students learning about histograms.

GeoGebra Commands & Parameters

  1. Sort(RemoveUndefined[A1:A100]) → Values
  2. Frequency(Bins, Values) → FreqList
  3. Max(FreqList) → maxy
  4. Length(Values) → numvals
  5. Element(Values, numvals) → maxval
  6. Element(Values, 1) → minval
  7. Textfield(usertext) → InputBox1
  8. Sequence((i, 0), i, minval, minval + (numbins * binwidth), binwidth) → TickMarks
  9. Sequence(0, maxy, ygap) → yVals
  10. Sequence((minval - binwidth / 2, i), i, Min[yVals], Max[yVals], ygap) → yTickMarks
  11. Sequence(Text[Element[yVals, i], Element[yTickMarks, i] + (ylabhshift, ylabvshift)], i, 1, Length[yVals]) → yLabels
  12. Element(Times, 1) → A1
  13. Element(Times, 2) → A2
  14. Element(Times, 3) → A3
  15. Element(Times, 4) → A4
  16. Element(Times, 5) → A5
  17. Element(Times, 6) → A6
  18. Element(Times, 7) → A7
  19. Element(Times, 8) → A8
  20. Element(Times, 9) → A9
  21. Element(Times, 10) → A10
  22. Element(Times, 11) → A11
  23. Element(Times, 12) → A12
  24. Element(Times, 13) → A13
  25. Element(Times, 14) → A14
  26. Element(Times, 15) → A15
  27. RotateText(LaTeX["\text{Frequency}"], π / 2) → yAxisLabel
  28. Histogram(Bins, Values, false) → HGram
  29. Sequence(Text[Element[Bins, i], Element[TickMarks, i] - (xlabhshift, xlabvshift)], i, 1, 100) → xLabels
  30. Sequence(Segment[(x(StartingPt), y(StartingPt) - (i * Height)), (x(StartingPt) + Width, y(StartingPt) - (i * Height))], i, 0, 13) → Segments
  31. Segment(StartingPt, BotPoint) → f
  32. Segment(StartingPtRight, BotPointRight) → g
  33. Polygon(StartingPt, Pt1, Pt2, StartingPtRight) → q1, startingpt, pt1, pt2, startingptright
  34. LaTeX("Times\\ \ \\" + (Element[Times, 1]) + "\\\ \\" + (Element[Times, 2]) + "\\\ \\" + (Element[Times, 3]) + "\\\ \\" + (Element[Times, 4]) + "\\\ \\" + (Element[Times, 5]) + "\\\ \\" + (Element[Times, 6]) + "\\\ \\" + (Element[Times, 7]) + "\\\ \\" + (Element[Times, 8]) + "\\\ \\" + (Element[Times, 9]) + "\\\ \\" + (Element[Times, 10]) + "\\\ \\" + (Element[Times, 11]) + "\\\ \\" + (Element[Times, 12]) + "") → Text
  35. Max(1, floor(numbins / 25)) → labelfreq
  36. Segment((minval - binwidth / 2, 0), (minval + (numbins * binwidth), 0)) → xaxis
  37. Segment((minval - binwidth / 2, 0), (minval - binwidth / 2, maxy)) → yaxis

AI Drawing Prompt Reference

Create a histogram for reaction practice. First, generate a histogram based on a set of data values, with appropriate bins, and display the frequency. The histogram should include an x-axis, y-axis, histogram bars, and labels for each bar. The x-axis should range from the minimum value to the maximum value, and the y-axis should range from 0 to the maximum frequency. Each bar's height should correspond to the frequency of data in that bin.
The prompt above was compiled from the original drawing commands and is for reference only.