Calculating Simple Harmonic Oscillation
Enter period, amplitude and time to calculate displacement at specified time, acceleration, angular velocity, and velocity. Also, display the changes during the entered time period on a graph.
Calculation |
|
|
|
|
|
|
|
angular velocity : ω = | 2π | displacement : x = A+ sin (ω t) |
|
| |||
| T | velocity : v = A+ ω+ cos (ω t) |
|
| |||
2 |
|
|
| ||||
acceleration : a = |
|
| |||||
A : amplitude |
| x | A |
| v0 | v |
|
t : time [sec] |
|
|
| ||||
|
| ωt | A | ωt | a | x | |
T : period [sec] |
|
| |||||
| 0 | 2π |
|
|
|
| |
ω : angular velocity [rad/sec] |
|
|
|
|
| ||
|
|
|
|
|
|
|
FLOWCHART
Start
Entry of period and amplitude
PROGRAMME LIST(REAL MODE)
Title : OSCILLAT
Print "Input PERIOD
Input P
P F
Print "Input AMPLITUDE
CALC
Entry of time
Calculation of
angular velocity, etc.
Angular velocity, displacement, acceleration and velocity calculated.
W = angular velocity
H = displacement
B = acceleration,
V = velocity
Input A
A D
Label CALC Print "Input TIME Input T
T E
2 π/F W
D sin (W E) H
D W cos (W E) V
Print "ANGULAR VELOCITY Print W
Print "MAGNITUDE Print H
Display of calculation result.
Calculation of
range and scale
Graph display
Display clear
Calculation result of angular velocity, displacement, acceleration and velocity displayed.
Range set and graph displayed. Function: Y = D sin (W X)
X is time increase.
Xmin ... 0, Xmax ... E, Xscl ... E/10 Ymin ...
Text and graph display cleared.
Print "ACCELERATION Print B
Print "VELOCITY Print V
Wait
E/10 X scl D/5 Y scl
0 Xmin:E Xmax
ClrT
ClrG
Goto CALC
8