Lesson 12 of 15
Spring-Mass Period
Period of a Spring-Mass System
A mass on a spring with constant oscillates with angular frequency:
The period (time for one complete oscillation):
Units: seconds.
Hooke's Law
The spring force: . The spring constant (N/m) measures stiffness — a stiffer spring (larger ) oscillates faster.
Key Observations
- Period increases with mass: heavier objects oscillate more slowly ()
- Period decreases with stiffness: stiffer springs oscillate faster ()
- Period is independent of amplitude: whether you stretch the spring 1 cm or 10 cm, the period is the same (for ideal springs)
Examples
| (kg) | (N/m) | (s) |
|---|---|---|
| 1 | 1 | 6.2832 |
| 4 | 1 | 12.5664 |
| 1 | 4 | 3.1416 |
| 2 | 8 | 3.1416 |
Your Task
Implement springPeriod(m, k) returning the oscillation period in seconds.
TCC compiler loading...
Loading...
Click "Run" to execute your code.