summaryrefslogtreecommitdiff
path: root/215/CH2/EX2.2/ex2_2.sce
blob: 3f56789c45bf51a4806c88ad8aba2ea8f8a445bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example 2.2
//Calculate vL 
disp("Given")
disp("v2=3V")
v2=3;
//From figure 2.19b
disp("Considering the right hand part of the circuit ")
disp("vL=5v2")
vL=5*v2;
disp("On substitution")
printf("vL=%dV\n",vL);