Decimal Representation of Rational and Irrational Numbers
Loading the math board and drawing, please wait…
This applet demonstrates the decimal representation of rational and irrational numbers to help students understand the difference between them. Key mathematical concepts include the definitions and decimal representations of rational and irrational numbers. It utilizes GeoGebra commands such as Denominator, Factors, Length, Sequence, If, GCD, Element, SelectedIndex, Textfield, etc. Suitable for middle school and above students.
GeoGebra Commands & Parameters
Denominator(h) → denom_hFactors(denom_h) → m2Length(m2) → length_{m2}Sequence(Element[m2, i, 1], i, 1, length_{m2}) → denomfactorslistIf(Defined[IndexOf[5, denomfactorslist]], IndexOf[5, denomfactorslist], 0) → fiveindexnumIf(Defined[IndexOf[2, denomfactorslist]], IndexOf[2, denomfactorslist], 0) → twoindexnumGCD(p, q) → commonfactorFactors(q / commonfactor) → m1Element(m1, 2, 1) → pf2Element(m1, 1, 1) → pf1Length(m1) → e_{length}SelectedIndex(listChoiceNumber) → fIf(f ≟ 1, If[terminatingDec, textRationalNumTerminating, textRationalNum], textIrrationalNum) → textNumShowTextfield(p) → InputBox1Textfield(q) → InputBox2TextToUnicode(textNumShow) → l01Length(l01) → bTextfield(textInputIrrational) → InputBox3Take(textNumShow, IndexOf[".", textNumShow] + 1) → text2Sequence("\textcolor{" + ((Element[colors, FromBase[UnicodeToLetter[Element[l01, k]], 10]] * "}{")) + (UnicodeToLetter[Element[l01, k]]) + "}", k, 3, dp + 3) → l4Sequence(Take[text2, 1 + (n * k), Min[n + (n * k), Length[text2]]], k, 0, Div[Length[text2], n]) → l1Sequence(Take[l1, 1 + (c * k), Min[c + (c * k), Length[l1] - 1]], k, 0, Div[Length[l1] - 1, c]) → l2Sequence(Take[l4, 1 + (n * k), Min[n + (n * k), Length[l4]]], k, 0, Div[Length[l4], n]) → l5Sequence(Take[l5, 1 + k, Min[1 + k, Length[l5] - 1]], k, 0, Div[Length[l5] - 1, 1]) → l6Length(l6) → lengthI6If(length_{m2} ≟ 1 ∧ twoindexnum + fiveindexnum ≟ 1 ∨ length_{m2} ≟ 2 ∧ twoindexnum + fiveindexnum ≟ 3 ∨ denom_h ≟ 1, true, false) → terminateDec2