summaryrefslogtreecommitdiff
path: root/620/CH19/EX19.3/example19_3.sce
blob: 3521be9d05c9cc3a3e95ca2cd49369bc45122c27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
l=8;
r=400;
v=20;
disp("Part a");
t=l/r;
disp("the time constant (in ms) of the circuit is"); disp(t*10^3);
disp("Part b");
i=v/r;
disp("final value of the current (in mA) is"); disp(i*10^3);
disp("Part c");
rate=v/l;
disp("the initial rate of rise of current (in A/s) is"); disp(rate);
disp("Part d");
t1=i/rate;
disp("time taken (in ms) to reach the final value of current is"); disp(t1*10^3);