summaryrefslogtreecommitdiff
path: root/2330/CH3/EX3.11/ex3_11.sce
blob: a9a1e7e62b8684e7de2d5b132ce1002ee55266de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Exa 3.11
format('v',6)
clc;
clear;
close;
// given data
Vz= 12;// in V
Vin= 15;// in V
R_S= 200;// in Ω
R_L= 1*10^3;// in Ω
// The value of I_S 
I_S= (Vin-Vz)/R_S;// in A
// The value of I_L 
I_L= Vz/R_L;// in A
// The value of I_Z 
I_Z= I_S-I_L;// in A
I_S= I_S*10^3;// in mA
I_L= I_L*10^3;// in mA
I_Z= I_Z*10^3;// in mA
disp(I_S,"The value of I_S in mA is : ")
disp(I_L,"The value of I_L in mA is : ")
disp(I_Z,"The value of I_Z in mA is : ")