Multiplication and Division
NOTE: This page has only the multiplication and division explorations. It has instructions, but the full explanation is here.
Multiplication
Exploration Instructions
Heads up! Multiplication and division take time. To operate this explorable:
- Dark Red = 0 and Light Green = 1.
- Click the circles in the upper left to make the first number. (You have to make the number in binary. The display number can NOT be typed into.)
- Click on the row of circles in the upper mid-right to make the second number. (These ones are surrounded by wires.)
- When you are ready, click the large red button in the upper right corner to turn the machine "on". (Note that the "Play" button enables animation but won't actually start the calculation unless the big red bit is made green.)
- Changing bits while the calculation is running... might be entertaining, because it won't restart the computation. If you want to abort it, the large red start button will be green; click it to turn the simulation off again.
- Too fast? There is speed control to the right of (or below) the exploration. Click "pause" to pause the circuit and "step" to do one iteration at a time. You can also adjust the animation speed.
For best results, try setting the second input to something with several 1 bits and several 0 bits. A good number for this is 110011 (51).
Oh, and one more thing — make sure both numbers are nonzero before you start!
In part three of the main exploration I have a detailed explanation of this hardware.
Division
Exploration Instructions
Heads up! Division takes time. To operate this explorable:
- Dark Red = 0 and Light Green = 1.
- The inputs are the red circles up top. The one above is the numerator, and the one below is the denominator. (You (still) have to make the number in binary. The display number can NOT be typed into.)
- When you are ready, click the large red button in the upper right corner to turn the machine "on". (Note that the "Play" button enables animation but won't actually start the calculation unless the big red bit is made green.)
- Changing bits while the calculation is running... might be entertaining, because it won't restart the computation. If you want to abort it, the large red start button will be green; click it to turn the simulation off again.
- When the operation completes, the answer will appear on the very bottom of the canvas. The left part is the remainder, and the right part is the quotient.
- Too fast? There is speed control to the right of (or below) the exploration. Click "pause" to pause the circuit and "step" to do one iteration at a time. You can also adjust the animation speed.
Oh, and one more thing — make sure both numbers are nonzero before you start!
Here's a few things to try:
- Try some stress tests: 63 divided by 1, 63 divided by 63, 1 divided by 63, 1 divided by 1, 0 divided by 1 or 63.
- What happens if you divide by zero? See if you can guess, then try it. (A real computer would issue some kind of error if you tried to do so, but that requires more work.)