Rectangular Billiards

Rectangular Billiards
Loading the math board and drawing, please wait…
2019-04-18 14:48
In collections Modelos
This example demonstrates the trajectory and reflection of a ball on a rectangular billiard table, involving concepts like angles, reflection laws, vectors, polygon construction, and coordinate geometry. It uses commands such as Segment, Point, Vector, Line, Sequence, RemoveUndefined, Remove, If, Mirror, PolyLine, First to construct the table, ball, and paths. Suitable for high school mathematics education to understand vector applications, reflections, and coordinate geometry.

GeoGebra Commands & Parameters

  1. Segment(A, B) → c1
  2. Segment(B, C) → c2
  3. Segment(C, D) → c3
  4. Segment(D, A) → c4
  5. Point(banda) → P
  6. Vector(V) → v
  7. Line(A1, Vector[B1]) → C1
  8. Sequence(Intersect[C1, banda(k)], k, 1, 4) → D1
  9. RemoveUndefined(D1) → E1
  10. Remove(E1, {A1}) → F1
  11. If(G1 ∈ c1, c1, G1 ∈ c2, c2, G1 ∈ c3, c3, c4) → H1
  12. Mirror(G1 + B1, H1) → I1
  13. Line(A2, Vector[B2]) → C2
  14. Sequence(Intersect[C2, banda(k)], k, 1, 4) → D2
  15. RemoveUndefined(D2) → E2
  16. Remove(E2, {A2}) → F2
  17. If(G2 ∈ c1, c1, G2 ∈ c2, c2, G2 ∈ c3, c3, c4) → H2
  18. Mirror(G2 + B2, H2) → I2
  19. Line(A3, Vector[B3]) → C3
  20. Sequence(Intersect[C3, banda(k)], k, 1, 4) → D3
  21. RemoveUndefined(D3) → E3
  22. Remove(E3, {A3}) → F3
  23. If(G3 ∈ c1, c1, G3 ∈ c2, c2, G3 ∈ c3, c3, c4) → H3
  24. Mirror(G3 + B3, H3) → I3
  25. Line(A4, Vector[B4]) → C4
  26. Sequence(Intersect[C4, banda(k)], k, 1, 4) → D4
  27. RemoveUndefined(D4) → E4
  28. Remove(E4, {A4}) → F4
  29. If(G4 ∈ c1, c1, G4 ∈ c2, c2, G4 ∈ c3, c3, c4) → H4
  30. Mirror(G4 + B4, H4) → I4
  31. Line(A5, Vector[B5]) → C5
  32. Sequence(Intersect[C5, banda(k)], k, 1, 4) → D5
  33. RemoveUndefined(D5) → E5
  34. Remove(E5, {A5}) → F5
  35. If(G5 ∈ c1, c1, G5 ∈ c2, c2, G5 ∈ c3, c3, c4) → H5
  36. Mirror(G5 + B5, H5) → I5
  37. Line(A6, Vector[B6]) → C6
  38. Sequence(Intersect[C6, banda(k)], k, 1, 4) → D6
  39. RemoveUndefined(D6) → E6
  40. Remove(E6, {A6}) → F6
  41. If(G6 ∈ c1, c1, G6 ∈ c2, c2, G6 ∈ c3, c3, c4) → H6
  42. Mirror(G6 + B6, H6) → I6
  43. Line(A7, Vector[B7]) → C7
  44. Sequence(Intersect[C7, banda(k)], k, 1, 4) → D7
  45. RemoveUndefined(D7) → E7
  46. Remove(E7, {A7}) → F7
  47. If(G7 ∈ c1, c1, G7 ∈ c2, c2, G7 ∈ c3, c3, c4) → H7
  48. Mirror(G7 + B7, H7) → I7
  49. Line(A8, Vector[B8]) → C8
  50. Sequence(Intersect[C8, banda(k)], k, 1, 4) → D8
  51. RemoveUndefined(D8) → E8
  52. Remove(E8, {A8}) → F8
  53. If(G8 ∈ c1, c1, G8 ∈ c2, c2, G8 ∈ c3, c3, c4) → H8
  54. Mirror(G8 + B8, H8) → I8
  55. Line(A9, Vector[B9]) → C9
  56. Sequence(Intersect[C9, banda(k)], k, 1, 4) → D9
  57. RemoveUndefined(D9) → E9
  58. Remove(E9, {A9}) → F9
  59. If(G9 ∈ c1, c1, G9 ∈ c2, c2, G9 ∈ c3, c3, c4) → H9
  60. Mirror(G9 + B9, H9) → I9
  61. Line(A10, Vector[B10]) → C10
  62. Sequence(Intersect[C10, banda(k)], k, 1, 4) → D10
  63. RemoveUndefined(D10) → E10
  64. Remove(E10, {A10}) → F10
  65. If(G10 ∈ c1, c1, G10 ∈ c2, c2, G10 ∈ c3, c3, c4) → H10
  66. Mirror(G10 + B10, H10) → I10
  67. Line(A11, Vector[B11]) → C11
  68. Sequence(Intersect[C11, banda(k)], k, 1, 4) → D11
  69. RemoveUndefined(D11) → E11
  70. Remove(E11, {A11}) → F11
  71. If(G11 ∈ c1, c1, G11 ∈ c2, c2, G11 ∈ c3, c3, c4) → H11
  72. Mirror(G11 + B11, H11) → I11
  73. Line(A12, Vector[B12]) → C12
  74. Sequence(Intersect[C12, banda(k)], k, 1, 4) → D12
  75. RemoveUndefined(D12) → E12
  76. Remove(E12, {A12}) → F12
  77. If(G12 ∈ c1, c1, G12 ∈ c2, c2, G12 ∈ c3, c3, c4) → H12
  78. Mirror(G12 + B12, H12) → I12
  79. Line(A13, Vector[B13]) → C13
  80. Sequence(Intersect[C13, banda(k)], k, 1, 4) → D13
  81. RemoveUndefined(D13) → E13
  82. Remove(E13, {A13}) → F13
  83. If(G13 ∈ c1, c1, G13 ∈ c2, c2, G13 ∈ c3, c3, c4) → H13
  84. Mirror(G13 + B13, H13) → I13
  85. Line(A14, Vector[B14]) → C14
  86. Sequence(Intersect[C14, banda(k)], k, 1, 4) → D14
  87. RemoveUndefined(D14) → E14
  88. Remove(E14, {A14}) → F14
  89. If(G14 ∈ c1, c1, G14 ∈ c2, c2, G14 ∈ c3, c3, c4) → H14
  90. Mirror(G14 + B14, H14) → I14
  91. Line(A15, Vector[B15]) → C15
  92. Sequence(Intersect[C15, banda(k)], k, 1, 4) → D15
  93. RemoveUndefined(D15) → E15
  94. Remove(E15, {A15}) → F15
  95. If(G15 ∈ c1, c1, G15 ∈ c2, c2, G15 ∈ c3, c3, c4) → H15
  96. Mirror(G15 + B15, H15) → I15
  97. Line(A16, Vector[B16]) → C16
  98. Sequence(Intersect[C16, banda(k)], k, 1, 4) → D16
  99. RemoveUndefined(D16) → E16
  100. Remove(E16, {A16}) → F16
  101. If(G16 ∈ c1, c1, G16 ∈ c2, c2, G16 ∈ c3, c3, c4) → H16
  102. Mirror(G16 + B16, H16) → I16
  103. Line(A17, Vector[B17]) → C17
  104. Sequence(Intersect[C17, banda(k)], k, 1, 4) → D17
  105. RemoveUndefined(D17) → E17
  106. Remove(E17, {A17}) → F17
  107. If(G17 ∈ c1, c1, G17 ∈ c2, c2, G17 ∈ c3, c3, c4) → H17
  108. Mirror(G17 + B17, H17) → I17
  109. Line(A18, Vector[B18]) → C18
  110. Sequence(Intersect[C18, banda(k)], k, 1, 4) → D18
  111. RemoveUndefined(D18) → E18
  112. Remove(E18, {A18}) → F18
  113. If(G18 ∈ c1, c1, G18 ∈ c2, c2, G18 ∈ c3, c3, c4) → H18
  114. Mirror(G18 + B18, H18) → I18
  115. Line(A19, Vector[B19]) → C19
  116. Sequence(Intersect[C19, banda(k)], k, 1, 4) → D19
  117. RemoveUndefined(D19) → E19
  118. Remove(E19, {A19}) → F19
  119. If(G19 ∈ c1, c1, G19 ∈ c2, c2, G19 ∈ c3, c3, c4) → H19
  120. Mirror(G19 + B19, H19) → I19
  121. Line(A20, Vector[B20]) → C20
  122. Sequence(Intersect[C20, banda(k)], k, 1, 4) → D20
  123. RemoveUndefined(D20) → E20
  124. Remove(E20, {A20}) → F20
  125. If(G20 ∈ c1, c1, G20 ∈ c2, c2, G20 ∈ c3, c3, c4) → H20
  126. Mirror(G20 + B20, H20) → I20
  127. Line(A21, Vector[B21]) → C21
  128. Sequence(Intersect[C21, banda(k)], k, 1, 4) → D21
  129. RemoveUndefined(D21) → E21
  130. Remove(E21, {A21}) → F21
  131. If(G21 ∈ c1, c1, G21 ∈ c2, c2, G21 ∈ c3, c3, c4) → H21
  132. Mirror(G21 + B21, H21) → I21
  133. Line(A22, Vector[B22]) → C22
  134. Sequence(Intersect[C22, banda(k)], k, 1, 4) → D22
  135. RemoveUndefined(D22) → E22
  136. Remove(E22, {A22}) → F22
  137. If(G22 ∈ c1, c1, G22 ∈ c2, c2, G22 ∈ c3, c3, c4) → H22
  138. Mirror(G22 + B22, H22) → I22
  139. Line(A23, Vector[B23]) → C23
  140. Sequence(Intersect[C23, banda(k)], k, 1, 4) → D23
  141. RemoveUndefined(D23) → E23
  142. Remove(E23, {A23}) → F23
  143. If(G23 ∈ c1, c1, G23 ∈ c2, c2, G23 ∈ c3, c3, c4) → H23
  144. Mirror(G23 + B23, H23) → I23
  145. Line(A24, Vector[B24]) → C24
  146. Sequence(Intersect[C24, banda(k)], k, 1, 4) → D24
  147. RemoveUndefined(D24) → E24
  148. Remove(E24, {A24}) → F24
  149. If(G24 ∈ c1, c1, G24 ∈ c2, c2, G24 ∈ c3, c3, c4) → H24
  150. Mirror(G24 + B24, H24) → I24
  151. Line(A25, Vector[B25]) → C25
  152. Sequence(Intersect[C25, banda(k)], k, 1, 4) → D25
  153. RemoveUndefined(D25) → E25
  154. Remove(E25, {A25}) → F25
  155. If(G25 ∈ c1, c1, G25 ∈ c2, c2, G25 ∈ c3, c3, c4) → H25
  156. Mirror(G25 + B25, H25) → I25
  157. Line(A26, Vector[B26]) → C26
  158. Sequence(Intersect[C26, banda(k)], k, 1, 4) → D26
  159. RemoveUndefined(D26) → E26
  160. Remove(E26, {A26}) → F26
  161. If(G26 ∈ c1, c1, G26 ∈ c2, c2, G26 ∈ c3, c3, c4) → H26
  162. Mirror(G26 + B26, H26) → I26
  163. Line(A27, Vector[B27]) → C27
  164. Sequence(Intersect[C27, banda(k)], k, 1, 4) → D27
  165. RemoveUndefined(D27) → E27
  166. Remove(E27, {A27}) → F27
  167. If(G27 ∈ c1, c1, G27 ∈ c2, c2, G27 ∈ c3, c3, c4) → H27
  168. Mirror(G27 + B27, H27) → I27
  169. Line(A28, Vector[B28]) → C28
  170. Sequence(Intersect[C28, banda(k)], k, 1, 4) → D28
  171. RemoveUndefined(D28) → E28
  172. Remove(E28, {A28}) → F28
  173. If(G28 ∈ c1, c1, G28 ∈ c2, c2, G28 ∈ c3, c3, c4) → H28
  174. Mirror(G28 + B28, H28) → I28
  175. Line(A29, Vector[B29]) → C29
  176. Sequence(Intersect[C29, banda(k)], k, 1, 4) → D29
  177. RemoveUndefined(D29) → E29
  178. Remove(E29, {A29}) → F29
  179. If(G29 ∈ c1, c1, G29 ∈ c2, c2, G29 ∈ c3, c3, c4) → H29
  180. Mirror(G29 + B29, H29) → I29
  181. Line(A30, Vector[B30]) → C30
  182. Sequence(Intersect[C30, banda(k)], k, 1, 4) → D30
  183. RemoveUndefined(D30) → E30
  184. Remove(E30, {A30}) → F30
  185. If(G30 ∈ c1, c1, G30 ∈ c2, c2, G30 ∈ c3, c3, c4) → H30
  186. Mirror(G30 + B30, H30) → I30
  187. Line(A31, Vector[B31]) → C31
  188. Sequence(Intersect[C31, banda(k)], k, 1, 4) → D31
  189. RemoveUndefined(D31) → E31
  190. Remove(E31, {A31}) → F31
  191. If(G31 ∈ c1, c1, G31 ∈ c2, c2, G31 ∈ c3, c3, c4) → H31
  192. Mirror(G31 + B31, H31) → I31
  193. Line(A32, Vector[B32]) → C32
  194. Sequence(Intersect[C32, banda(k)], k, 1, 4) → D32
  195. RemoveUndefined(D32) → E32
  196. Remove(E32, {A32}) → F32
  197. If(G32 ∈ c1, c1, G32 ∈ c2, c2, G32 ∈ c3, c3, c4) → H32
  198. Mirror(G32 + B32, H32) → I32
  199. Line(A33, Vector[B33]) → C33
  200. Sequence(Intersect[C33, banda(k)], k, 1, 4) → D33
  201. RemoveUndefined(D33) → E33
  202. Remove(E33, {A33}) → F33
  203. If(G33 ∈ c1, c1, G33 ∈ c2, c2, G33 ∈ c3, c3, c4) → H33
  204. Mirror(G33 + B33, H33) → I33
  205. Line(A34, Vector[B34]) → C34
  206. Sequence(Intersect[C34, banda(k)], k, 1, 4) → D34
  207. RemoveUndefined(D34) → E34
  208. Remove(E34, {A34}) → F34
  209. If(G34 ∈ c1, c1, G34 ∈ c2, c2, G34 ∈ c3, c3, c4) → H34
  210. Mirror(G34 + B34, H34) → I34
  211. Line(A35, Vector[B35]) → C35
  212. Sequence(Intersect[C35, banda(k)], k, 1, 4) → D35
  213. RemoveUndefined(D35) → E35
  214. Remove(E35, {A35}) → F35
  215. If(G35 ∈ c1, c1, G35 ∈ c2, c2, G35 ∈ c3, c3, c4) → H35
  216. Mirror(G35 + B35, H35) → I35
  217. Line(A36, Vector[B36]) → C36
  218. Sequence(Intersect[C36, banda(k)], k, 1, 4) → D36
  219. RemoveUndefined(D36) → E36
  220. Remove(E36, {A36}) → F36
  221. If(G36 ∈ c1, c1, G36 ∈ c2, c2, G36 ∈ c3, c3, c4) → H36
  222. Mirror(G36 + B36, H36) → I36
  223. Line(A37, Vector[B37]) → C37
  224. Sequence(Intersect[C37, banda(k)], k, 1, 4) → D37
  225. RemoveUndefined(D37) → E37
  226. Remove(E37, {A37}) → F37
  227. If(G37 ∈ c1, c1, G37 ∈ c2, c2, G37 ∈ c3, c3, c4) → H37
  228. Mirror(G37 + B37, H37) → I37
  229. Line(A38, Vector[B38]) → C38
  230. Sequence(Intersect[C38, banda(k)], k, 1, 4) → D38
  231. RemoveUndefined(D38) → E38
  232. Remove(E38, {A38}) → F38
  233. If(G38 ∈ c1, c1, G38 ∈ c2, c2, G38 ∈ c3, c3, c4) → H38
  234. Mirror(G38 + B38, H38) → I38
  235. Line(A39, Vector[B39]) → C39
  236. Sequence(Intersect[C39, banda(k)], k, 1, 4) → D39
  237. RemoveUndefined(D39) → E39
  238. Remove(E39, {A39}) → F39
  239. If(G39 ∈ c1, c1, G39 ∈ c2, c2, G39 ∈ c3, c3, c4) → H39
  240. Mirror(G39 + B39, H39) → I39
  241. Line(A40, Vector[B40]) → C40
  242. Sequence(Intersect[C40, banda(k)], k, 1, 4) → D40
  243. RemoveUndefined(D40) → E40
  244. Remove(E40, {A40}) → F40
  245. If(G40 ∈ c1, c1, G40 ∈ c2, c2, G40 ∈ c3, c3, c4) → H40
  246. Mirror(G40 + B40, H40) → I40
  247. PolyLine(A1:A40) → trayectoria
  248. First(A2:A40, (m + n) / GCD[m, n] - 2) → rebotes

AI Drawing Prompt Reference

Draw a rectangular billiard table with a ball on it. The ball moves in straight lines and reflects off the walls according to the law of reflection, where the angle of incidence equals the angle of reflection. The trajectory consists of straight line segments, illustrating concepts of angles, vectors, and coordinate geometry. The construction order: first draw the rectangular billiard table, then place the ball, then simulate the ball's multiple reflection paths to show the trajectory and reflection relationships.
The prompt above was compiled from the original drawing commands and is for reference only.