blob: 2d5dc2f01fbe1d2219a75e37e47181ed201d06f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clc
T=5// sec
a=3// cm
alpha=%pi/3
w=(2*%pi/T)
//solution a:
//for
t=0//sec
y=a*sin(w*t+alpha)
disp(y,"y in cm is=")
//solution b:
//for
t=12//sec
y=a*sin(w*t+alpha)
disp(y,"y in cm is=")
|