MAE 4182
Lecture 03 · Codex LabSystem Modeling

12–15 minutes · work in pairs · no coding experience required

Vibe-code the dynamics.

Describe a physical change, let Codex edit the simulator, then test whether the motion makes sense.
  1. 1Choose
  2. 2Ask Codex
  3. 3Paste + Run
  4. 4Observe

Step 1 · Choose one mission

What should your simulator learn to do?

Every pair starts from the same working pendulum.

Step 2 · Build with Codex

Same angle, different future

Open Codex

Create two pendulums side by side. Give them the same initial angle but opposite initial angular velocities. Display theta and theta-dot for both so the difference is unmistakable.

HTMLPaste Codex's complete file here
4.4 KB
LIVE PREVIEWTest the physical behavior
STATUS

Starter loaded. Press Start inside the preview, then choose a mission.

Your code runs only inside an isolated preview. Nothing is submitted by this course page or saved here.

Step 3 · One-minute debrief

What did you ask Codex to change?

Describe the code change

“We asked Codex to add ______.”

Describe the dynamics

“The motion changed because ______.”