Comparing Integers

Comparing Integers
Loading the math board and drawing, please wait…
2019-01-11 03:22
This example demonstrates comparing two integers and forming an inequality. Key math concepts include integers and their comparison. It uses commands like Polygon, Random, RandomElement, PointIn, IsInRegion, LaTeX, If, etc. Suitable for middle school math education.

GeoGebra Commands & Parameters

  1. Polygon({(-6, 9), (26, 9), (26, -1), (-6, -1)}) → viewBox
  2. Random(-15, 15) → theLeftInteger
  3. RandomElement({-15, 15}) → temp
  4. Polygon({(6, 3), (6, 7), (14, 7), (14, 3)}) → box
  5. PointIn(viewBox) → midGreaterThan
  6. IsInRegion(midGreaterThan, box) → isGreaterThanInRegion
  7. PointIn(viewBox) → midLessThan
  8. IsInRegion(midLessThan, box) → isLessThanInRegion
  9. LaTeX((((("\text{" * QUESTION) * "\\") * INSTRUCTIONS) * "}")) → TEXT
  10. If(temp ≟ theLeftInteger, temp + 1, temp) → theRightInteger
  11. Polygon({(6, 3), (6, 7), (14, 7), (14, 3)}) → boxFrame

AI Drawing Prompt Reference

Draw a graphic for comparing two integers. First, draw a rectangle as the view box. Then, generate two random integers, one for the left integer and one for the right integer. Randomly generate two points within the view box and check if they are in the region of the rectangle representing the integers. Based on the check results, form an inequality. Finally, draw a rectangle frame within the view box to represent the region of the integers.
The prompt above was compiled from the original drawing commands and is for reference only.