# Khan/khan-exercises

marcia committed Sep 19, 2011
1 parent b16a4c4 commit 41183eb22b90ff5e55b3b7f93f0bb70cdc52a6cb
Showing with 48 additions and 0 deletions.
1. +48 −0 exercises/distributive_property.html
 @@ -0,0 +1,48 @@ + + + + + Distributive property + + + +
+
+ randRangeUnique( 2, 10, 3 ) + A * ( B + C ) +
+ +
+
+

Distribute.

+

A\times(B + C)

+

RESULT

+
+
+

Each row has B + C = B+C rectangles, and there are A rows.

+
+ init({ + range: [ [ 0, 1 ], [ 0, A ] ], + scale: [ 180, 30 ] + }); + rectchart( [ B, C ], [ "#FFA500", "#6495ED" ], A - 1 ); + for ( var i = 0; i < A - 1; i++ ) { + rectchart( [ B, C ], [ "#FFCF22", "#85B7FF" ], i); + } +
+
+

Counting by color:

+

Number of orange rectangles: A \times B = A * B

+

Number of blue rectangles: A \times C = A* C

+

Total number of rectangles: A * B + A * C = RESULT

+

Counting by row:

+

Number of rows: A

+

Number of rectangles in a row: B + C = B + C

+

Total number of rectangles: A \times B + C = RESULT

+

(A \times B) + (A \times C) = A\times(B + C) = RESULT

+
+
+
+
+ +