diff options
author | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:38:01 +0530 |
commit | f35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch) | |
tree | eb72842d800ac1233e9d890e020eac5fd41b0b1b /2075 | |
parent | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff) | |
download | Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2 Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip |
updated the code
Diffstat (limited to '2075')
-rwxr-xr-x | 2075/CH6/EX6.4/pe6_4.sce | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/2075/CH6/EX6.4/pe6_4.sce b/2075/CH6/EX6.4/pe6_4.sce index 789a997fa..a61dd5cc0 100755 --- a/2075/CH6/EX6.4/pe6_4.sce +++ b/2075/CH6/EX6.4/pe6_4.sce @@ -1,25 +1,24 @@ -//example 6.4
-clc; funcprot(0);
-// Initialization of Variable
-Vd=28;//V
-f=100;//frequency
-I=50;//current
-//calculation
-Rl=(Vd-.3)/I;
-disp(Rl*1000,"load resistance in ohm:")
-printf('thus pick Rl=560ohm')
-Rl=560;
-Vp=2.4;
-Ib=500;//microAmp
-Rb=(Vp-.9)/Ib;
-disp(Rb*1000,"max value of Rb is in kohm:")
-printf('thus pick Rb=2.2kohm')
-Vl=Vd-.3;
-D=.5;//duty cycle
-Ip=Vl/Rl;
-disp(Ip*1000,"load current in mA:")
-Pl=D*Vl*Ip;
-disp(Pl*1000,"load power in mW:")
-Pq=D*Ip*.3;
-disp(Pq*1000,"power delivered in mW:")
-clear()
+//example 6.4 +clc; funcprot(0); +// Initialization of Variable +Vd=28;//V +f=100;//frequency +I=50;//current +//calculation +Rl=(Vd-.3)/I; +disp(Rl*1000,"load resistance in ohm:") +printf('thus pick Rl=560ohm') +Rl=560; +Vp=2.4; +Ib=500;//microAmp +Rb=(Vp-.9)/Ib; +disp(Rb*1000,"max value of Rb is in kohm:") +printf('thus pick Rb=2.2kohm') +Vl=Vd-.3; +D=.5;//duty cycle +Ip=Vl/Rl; +disp(Ip*1000,"load current in mA:") +Pl=D*Vl*Ip; +disp(Pl*1000,"load power in mW:") +Pq=D*Ip*.3; +disp(Pq*1000,"power delivered in mW:")
\ No newline at end of file |