summaryrefslogtreecommitdiff
path: root/2102/CH4/EX4.11/exa_4_11.sce
blob: 71cd707df7be3498615ef4409ebe69b8d0c481e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Exa 4.11
clc;
clear;
close;
// Given data
V_Dmin= 1.8;// in V
V_Dmax= 3;// in V
// Case first
Vs= 24;// in V
R1= 820;// in Ω
Imin=  (Vs-V_Dmax)/R1;// in A
Imax= (Vs-V_Dmin)/R1;// in A
disp(Imax*10^3-Imin*10^3,"The variation in current in first case in mA is : ")
// Case second
Vs= 5;// in V
R1= 120;// in Ω
Imin=  (Vs-V_Dmax)/R1;// in A
Imax= (Vs-V_Dmin)/R1;// in A
disp(Imax*10^3-Imin*10^3,"The variation in current in first case in mA is : ")
disp("The variation in current in first case is smaller than in second case, So the brighness in the first case will remain constant , whereas in the second case it will be changing.")