Build a Particle-in-a-Box Energy Ladder with Claude Code + Manim
Nik Bear Brown — Claude Code, Manim, and the physics, taken apart. The prompt. Claude Code terminal: claude — write a Manim scene, particle in a box, L equals one nanometer, electron mass. Draw the first three energy levels as horizontal lines. Label each with its energy in electron-volts. Three things in every…
Build a Particle-in-a-Box Energy Ladder with Claude Code + Manim
Nik Bear Brown — Claude Code, Manim, and the physics, taken apart. The prompt. Claude Code terminal: claude — write a Manim scene, particle in a box, L equals one nanometer, electron mass. Draw the first three energy levels as horizontal lines. Label each with its energy in electron-volts. Three things in every generation prompt: the rule, the numbers, what to render. Miss any one and the scene needs a re-do. The CLI writes the file. Before running — read it. Find this line: n-squared times E-one. That is the entire physics. Check that E-one is twelve-forty-squared times pi-squared over twice the mass times L-squared — in electron-volts. Check n equals one gives point-three-seven-six. Thirty seconds. Never skip this. Run it. Two things to verify. First: the ratio E-two over E-one. The chip shows four-point-zero-zero-zero. Exact — not approximate. That is the n-squared law. Second: E-one sits above zero. Ground state energy is point-three-seven-six electron-volts. The particle cannot have zero energy — zero-point energy is built into the geometry. Both correct. Ready to iterate. Iterate: claude — update pib L-one-nm dot py — halve L to point-five nanometers and show that E-one quadruples to one-point-five-zero-four electron-volts. One parameter, one check. Prompt, read, run, verify, change. The physics was the excuse. The loop is the skill you carry forward. Nik Bear Brown. Brutalist and Educational A-I. On YouTube, at Nik Bear Brown. Nik Bear Brown dot com.
youtube.com/@NikBearBrown
Transcript
A lightly formatted transcript of the video, with timestamps so you can jump to any section on YouTube.
[0:00] Nick Bear Brown, Claude Code, Manm and the Physics Taken Apart. The prompt claude code terminal Claude I. Write a monom scene particle in a box. L equals 1 nanometer electron mass. Draw the first three energy levels as horizontal lines. Label each with its energy and electron volts. Three things in every generation prompt. The rule, the numbers, what to render. Miss anyone in the scene needs a redo. The CLI writes the file before running. Read it. Find this line. N^ 2 * E1. That is the entire physics. Check that E1 is 1240^2 *<unk> ^2 over twice the mass * L^ 2 in electron volts. Check N= 1 gives 376. 30
[0:49] Seconds. Never skip this. Run it. Two things to verify. First the ratio E2 over E1. The chip shows 4.0000 exact E not approximate. That is the N squared law. Second E1 sits above zero. Ground state energy is 376 electron volts. The particle cannot have zero energy. 0 point energy is built into the geometry. Both correct. Ready to iterate. Iterate. Claude I update PIL L1 NM.PI. PI have L to.5 nanome and show that E1 quadruples to 1.504 electron volts. One parameter, one check, prompt, read, run, verify, change. The physics was the excuse. The loop is the skill you carry forward. Nick Bear Brown, brutalist and educational AI on YouTube
[1:46] At nickbear brown. nickbear brown.com





