Converting Decimals to Fractions by raffaele.fantasia1

Converting Decimals to Fractions by raffaele.fantasia1
Loading the math board and drawing, please wait…
2019-02-11 19:39
This example demonstrates the process of converting decimals to fractions. It involves core mathematical concepts such as fractions, greatest common divisor (GCD), and simplifying fractions. Key GeoGebra commands and objects used include RandomDiscrete, Random, If, GCD, Textfield, Intersect, Line, OrthogonalLine, Point, FromBase, Mod. Suitable for middle school and above students to understand and practice decimal to fraction conversion and simplification.

GeoGebra Commands & Parameters

  1. RandomDiscrete({10, 100, 1000}, {1, 3, 2}) → Rawd_2
  2. Random(1, Rawd_2 - 1) → Rawn_2
  3. RandomDiscrete({10, 100, 1000}, {1, 3, 2}) → Rawd_1
  4. Random(1, Rawd_1 - 1) → Rawn_1
  5. RandomDiscrete({10, 100, 1000}, {1, 3, 2}) → XRawd_1
  6. Random(1, XRawd_1 - 1) → XRawn_1
  7. If(Mod[Rawn_1, 100] ≟ 0, Rawd_1 / 100, If[Mod[Rawn_1, 10] ≟ 0, Rawd_1 / 10, Rawd_1]) → d_1
  8. If(Mod[Rawn_1, 100] ≟ 0, Rawn_1 / 100, If[Mod[Rawn_1, 10] ≟ 0, Rawn_1 / 10, Rawn_1]) → n_1
  9. GCD(n_1, d_1) → HCF_1
  10. Textfield(Sd_1) → inputBox2
  11. Textfield(Sn_1) → inputBox1
  12. Intersect(xAxis, yAxis) → B
  13. Line(B, C) → a
  14. OrthogonalLine(A, a) → b
  15. Point(b) → D
  16. OrthogonalLine(D, b) → c
  17. Point(c) → E
  18. Textfield(SAn_1) → inputBox3
  19. Textfield(SAd_1) → inputBox4
  20. Point(c) → F
  21. Point(c) → G
  22. FromBase(SAn_1, 10) → Simn_1
  23. FromBase(SAd_1, 10) → Simd_1
  24. If(Mod[XRawn_1, 100] ≟ 0, XRawd_1 / 100, If[Mod[XRawn_1, 10] ≟ 0, XRawd_1 / 10, XRawd_1]) → Xd
  25. If(Mod[XRawn_1, 100] ≟ 0, XRawn_1 / 100, If[Mod[XRawn_1, 10] ≟ 0, XRawn_1 / 10, XRawn_1]) → Xn
  26. GCD(Xn, Xd) → XHCF
  27. If(Mod[Rawn_2, 100] ≟ 0, Rawd_2 / 100, If[Mod[Rawn_2, 10] ≟ 0, Rawd_2 / 10, Rawd_2]) → d_2
  28. If(Mod[Rawn_2, 100] ≟ 0, Rawn_2 / 100, If[Mod[Rawn_2, 10] ≟ 0, Rawn_2 / 10, Rawn_2]) → n_2
  29. GCD(n_2, d_2) → HCF_2
  30. Textfield(Sd_2) → inputBox2_1
  31. Textfield(Sn_2) → inputBox1_1
  32. Textfield(SAn_2) → inputBox3_1
  33. Textfield(SAd_2) → inputBox4_1
  34. FromBase(SAn_2, 10) → Simn_2
  35. FromBase(SAd_2, 10) → Simd_2
  36. Mod(n_1, Simn_1) → Modn_1
  37. Mod(n_2, Simn_2) → Modn_2
  38. Mod(d_1, Simd_1) → Modd_1
  39. Mod(d_2, Simd_2) → Modd_2