P2 Subtraction Demo

P2 Subtraction Demo
Loading the math board and drawing, please wait…
2017-09-25 11:12
This example demonstrates the principles and calculation process of P2 subtraction in mathematics. It involves core concepts like digital operations, decimal subtraction, and the representation of geometric figures (polygons, pyramids). Key GeoGebra commands and objects used include Textfield, Polygon, If, Mod, Div, as outlined in the construction summary. Suitable for elementary and above levels to learn subtraction, geometric representation, and logical thinking through programming.

GeoGebra Commands & Parameters

  1. Textfield(Subtrahend) → InputBoxDividend
  2. Textfield(div) → InputBoxDivisor
  3. Polygon(Co2, Co3, Co4, Co1) → RegionTen, RegTenS1, RegTenS2, RegTenS3, RegTenS4
  4. Polygon(Co3, Co5, Co6, Co4) → RegionOne, RegOneS1, RegOneS2, RegOneS3, RegOneS4
  5. If(ShowChi, "被減數", "Minuend") → text1Minuend
  6. If(ShowChi, "減數", "Subtrahend") → text2Subtrahend
  7. If(ShowChi, "顯示差", "Show the difference") → text6ShowAns
  8. If(ShowChi, "註:程式只會把左上角的一條變成十粒數粒。", "Note: Only the bar at the upper left corner will be changed to 10 squares.") → Instruction2
  9. Polygon(BoxCo1, BoxCo3, BoxCo4, BoxCo2) → RegionBox, boxco1, boxco3, boxco4, boxco2
  10. If(ShowChi, "取去代表減數的數粒。", " Take away the squares representing the subtrahend.") → Instruction1
  11. Mod(Subtrahend, 10) → One
  12. Div(Subtrahend, 10) → Ten