First challenge: simulate a simple pendulum with c4dynamics 🏗️ #88
C4dynamics
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let’s get started with our first hands-on example using c4dynamics.
Your challenge is to simulate a simple pendulum and plot 𝜃 vs. time for 5 seconds.
Pendulum Setup:
solve_ivpusing a time step ofYour Tasks:
💡 Tip: Keep it simple—focus on getting the simulation running first.
Check Your Solution:
Once you’ve tried it, you can compare your result with this example implementation:
pendulum.py
Feel free to ask questions, share your plots, or suggest improvements in this discussion. Let’s learn and build together! 🚀
Beta Was this translation helpful? Give feedback.
All reactions