Lesson 11 of 15
Simple Harmonic Motion
Simple Harmonic Motion
Simple Harmonic Motion (SHM) occurs when a restoring force is proportional to displacement (Hooke's law: ). The resulting motion is sinusoidal:
- — amplitude (maximum displacement, metres)
- — angular frequency (rad/s):
- — time (seconds)
Starting at , the object is at maximum displacement .
Key Quantities
Velocity and Acceleration in SHM
The acceleration always opposes displacement — this is the hallmark of SHM.
Examples
| 1 | 1 | 0 | 1.0000 (at maximum) |
| 5 | 2 | 0 | 5.0000 |
| 3 | 1 | −3.0000 (at minimum) | |
| 10 | 1 | 10.0000 (back to start) |
Your Task
Implement shmX(A, omega, t) returning displacement in metres.
TCC compiler loading...
Loading...
Click "Run" to execute your code.