summaryrefslogtreecommitdiff
path: root/620/CH15/EX15.1/example15_1.sce
blob: 8f7de09f1015179b29f60c1e8a9f41d8f934720a (plain)
1
2
3
4
5
6
7
8
9
vm=5;
f=1000;
disp("Part a");
w=2*%pi*f;
disp("the angular frequency (in rad/s) is"); disp(w);
disp("Part b");
t=400*10^(-6);
v=vm*sin(w*t);
disp("the instantaneous voltage (in V) is"); disp(v);