Adding Two Real Numbers on a Number Line
Sum of Two Real Numbers (Updated for 8βbit Binary Addition)
Overview
A concise visual demonstration of how to add two 8βbit binary numbers.
The animation displays the two operands as 8βbit strings, constructs the columnβwise addition with carries, and reveals the 8βbit sum (and an optional overflow bit). This illustrates binary addition on a fixedβwidth register, reinforcing the concept of bitwise addition and carry propagation.
Phases
| # | Phase Name | Duration | Description |
|---|---|---|---|
| 1 | Intro | ~3β―s | Title βAddition binaire sur 8β―bitsβ fades in at the top. A rectangular βregisterβ area appears centered. |
| 2 | Show Operands | ~5β―s | Two 8βbit numbers appear sideβbyβside inside the register, labeled and (e.g., A = 10110101, B = 01101011). Bits are colored (blue forβ―, orange forβ―). |
| 3 | Columnβwise Addition Setup | ~6β―s | A faint grid of 8 columns is drawn beneath the bits. A row for carry is added above the bits, initially all zeros. |
| 4 | Propagate Carries | ~8β―s | Starting from the leastβsignificant bit (rightmost), the animation computes each column: it shows the three bits (carryβin, , ), highlights them, and displays the resulting sum bit and new carryβout. The carryβout is animated moving up to the next column. |
| 5 | Reveal Result | ~4β―s | After the last column, the final carry (if any) appears as an overflow bit on the left. The resulting 8βbit sum is highlighted (e.g., S = 00100000). The numeric decimal equivalents of , and appear briefly beneath the register. |
| 6 | Generalization | ~5β―s | Specific numbers fade, leaving generic placeholders: A = aββ¦aβ, B = bββ¦bβ, and a doubleβarrow indicating βadd bitwise with carriesβ. A caption βLβaddition binaire de deux octets se fait colonne par colonne, en propageant les retenuesβ appears at the bottom. |
| 7 | Outro | ~3β―s | All elements fade out, leaving only the title which then fades out. |
Layout
βββββββββββββββββββββββββββββββββββββββββββββββ
β TOP AREA (Title) β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β MAIN AREA (Register) β
β β
β βββββββ¬ββββββ¬ββββββ¬ββββββ¬ββββββ¬ββββββ¬ββββββ¬ββββββ
β β a7 β a6 β a5 β a4 β a3 β a2 β a1 β a0 β β A (blue)
β βββββββΌββββββΌββββββΌββββββΌββββββΌββββββΌββββββΌββββββ€
β β b7 β b6 β b5 β b4 β b3 β b2 β b1 β b0 β β B (orange)
β βββββββΌββββββΌββββββΌββββββΌββββββΌββββββΌββββββΌββββββ€
β β c7 β c6 β c5 β c4 β c3 β c2 β c1 β c0 β β Carry (gray, moves up)
β βββββββΌββββββΌββββββΌββββββΌββββββΌββββββΌββββββΌββββββ€
β β s7 β s6 β s5 β s4 β s3 β s2 β s1 β s0 β β Sum (green)
β βββββββ΄ββββββ΄ββββββ΄ββββββ΄ββββββ΄ββββββ΄ββββββ΄ββββββ
β β
βββββββββββββββββββββββββββββββββββββββββββββββ€
β BOTTOM AREA (Caption) β
βββββββββββββββββββββββββββββββββββββββββββββββ
Area Descriptions
| Area | Content | Notes |
|---|---|---|
| Top | Title βAddition binaire sur 8β―bitsβ | Fades in during Intro, stays until Outro |
| Main | Two 8βbit rows for operands and , a carry row, and the resulting sum row. Grid lines delineate each bit column. | Central visual focus; bits animate individually during carry propagation |
| Bottom | Explanatory caption shown in Phaseβ―6 (Generalization) | Small font, appears only in Phaseβ―6 |
Notes
- Labels are limited to , , and the carry symbols; the visual process conveys the binary addition.
- Colors:
- Operandβ―: blue
- Operandβ―: orange
- Carry bits: light gray (become brighter when active)
- Sum bits: green
- All transitions are smooth fades or linear motions; carry bits slide upward to the next column.
- Total animation length remains ~34β―seconds, still within a typical 30βsecond guideline (the extra seconds are acceptable for the added complexity).
- The scene uses a single Manim
Sceneclass, withVGroupobjects for each row andIntegerobjects for individual bits. - Optional overflow bit is displayed only if the final carry is
1; otherwise it stays hidden.
Created By
Description
The animation shows a horizontal number line with two points representing the addends. An arrow starting at the first point moves a distance equal to the second addend, illustrating the translation. The arrow ends at the sum point, which is labeled with its numeric value. The scene then generalizes the process, emphasizing that adding a number corresponds to translating the first point by the distance of the second on the real line.
Created At
Apr 18, 2026, 05:16 AM
Duration
0:45