Lattice Multiplication Interactive Demo

Lattice Multiplication Interactive Demo
Loading the math board and drawing, please wait…
2017-01-15 06:22
This GeoGebra example provides an interactive visualization of lattice multiplication, a method for multiplying multi-digit numbers by breaking the product into partial products within a grid. The core mathematical concepts include integer multiplication, place value (ones, tens, hundreds), and the summation of diagonal partial sums. The construction uses Textfield and InputBox objects to accept two factors, Sequence to generate digit lists, and Union to merge grid lines. Key objects include digitsA and digitsB for extracting individual digits, textTop and textRight for labeling the top and right sides, lines1, lines2, and lines3 for drawing the diagonal lines, digitONES and digitTENS to store the ones and tens digits of each cell product, and answer/grid to display the final result. Checkboxes such as showProducts, showTopNumber, and showAnswer control the visibility of intermediate steps. This resource is suitable for upper elementary and middle school students learning multiplication algorithms, as well as for teachers demonstrating the connection between lattice multiplication and the standard algorithm.

GeoGebra Commands & Parameters

  1. Textfield(A) → InputBox1
  2. Textfield(B) → InputBox2
  3. Sequence(Mod[floor(A / 10^(k)), 10], k, 0, numA - 1) → digitsA
  4. Sequence(Mod[floor(B / 10^(k)), 10], k, 0, numB - 1) → digitsB
  5. Sequence(Text[Element[digitsA, k], ((-k) + 0.2, 0)], k, 1, numA) → textTop
  6. Sequence(Text[Element[digitsB, numB - k + 1], (0, (-k) + 0.2)], k, 1, numB) → textRight
  7. Union(Sequence[Segment[(If[k ≤ numB, (-numA), k - numB - numA], If[k ≤ numB, (-k), (-numB)]), ((-numA) + k, 0)], k, 1, numA], Sequence[Segment[(If[k ≤ numB - numA, (-numA), (-numB) + k], If[k ≤ numB - numA, (-numA) - k, (-numB)]), (0, (-k))], k, 1, numB - 1]) → lines3
  8. Sequence(Segment[((-k), (-numB) - 0.5), ((-k), 0.5)], k, 0, numA) → lines2
  9. Sequence(Segment[((-numA) - 0.5, (-k)), (0.5, (-k))], k, 0, numB) → lines1
  10. Sequence(Sequence[Text[Mod[(Element[digitsA, i] * Element[digitsB, j]), 10], ((-i) + 0.6, j - numB - 1 + 0.2)], i, 1, numA], j, 1, numB) → digitONES
  11. Sequence(Sequence[Text[Mod[floor((Element[digitsA, i] * Element[digitsB, j] / 10)), 10], ((-i) + 0.2, j - numB - 1 + 0.5)], i, 1, numA], j, 1, numB) → digitTENS
  12. Sequence(Text[Mod[floor(answer / 10^(k)), 10], If[k < numA, ((-k) - 1 + 0.4, (-numB) - 0.3), ((-numA) - 0.3, k - numB - numA + 0.3)]], k, 0, showAnswer) → textANSWER