Interactive 'Between-ness' with Rational Numbers
Loading the math board and drawing, please wait…
① This example randomly generates two rational numbers and asks the user to input a number that lies between them, visually demonstrating the density of rational numbers on the number line—between any two distinct rationals there is always another rational. ② Core mathematical concepts include comparing rational numbers, interval logic, and the property of density for rationals, involving fractions, numerators, and denominators. ③ Construction highlights: using GeoGebra commands Random to generate numerator and denominator (Rnum, Rdenom), If to check whether the user's input (yourNum) lies between the two random numbers a and b; the interface includes text fields (Textfield), input boxes (InputBox1, InputBox2), a button (button1), and multiple text objects (text1–text5) to display the problem and feedback. ④ Suitable for middle school mathematics when learning rational numbers, and useful as an interactive classroom activity or self-paced practice to reinforce the concept of density and interval membership.
GeoGebra Commands & Parameters
Random(1, 19) → RnumRandom(5, 20) → RdenomTextfield(trialP) → InputBox1Textfield(trialQ) → InputBox2If(a, 10, 20) → RdenomTop