Lesson 13 of 15
Pendulum Period
The Simple Pendulum
A mass on a string of length , swinging under gravity, oscillates with period:
where m/s².
Historical Importance
Galileo noticed that pendulum period is independent of amplitude (for small angles). This led to pendulum clocks — the most accurate timekeepers for 300 years, from Huygens (1656) to quartz oscillators (1920s).
The Small-Angle Approximation
This formula holds when the angle is small (). For large angles, the true period is longer and requires an elliptic integral to compute exactly.
Period vs Spring-Mass
| Spring-Mass | Pendulum | |
|---|---|---|
| Formula | ||
| Restoring force | Spring: | Gravity: |
| Effective "k" |
For the pendulum, the "spring constant" is — so mass cancels out and period is mass-independent.
Examples
| (m) | (s) |
|---|---|
| 1.000 | 2.0061 |
| 4.000 | 4.0122 |
| 9.810 | 6.2832 |
| 0.248 | 0.9990 s (a seconds pendulum) |
Your Task
Implement pendulumPeriod(L) returning the period in seconds.
TCC compiler loading...
Loading...
Click "Run" to execute your code.