diff options
Diffstat (limited to '2231/CH1/EX1.29/Ex_1_29.sce')
-rwxr-xr-x | 2231/CH1/EX1.29/Ex_1_29.sce | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/2231/CH1/EX1.29/Ex_1_29.sce b/2231/CH1/EX1.29/Ex_1_29.sce new file mode 100755 index 000000000..fcc7dfd46 --- /dev/null +++ b/2231/CH1/EX1.29/Ex_1_29.sce @@ -0,0 +1,23 @@ +//Example 1_29
+clc;
+clear;close;
+
+//Given data:
+f=2*1000;//Hz
+Vdc=10;//V
+Eta=0.6;
+Ip=5*10^-3;//A
+Vf=0.5;//V//assumed
+Vp=Eta*Vdc+Vf;//V
+//Vdc-Ip*R>Vp
+R_upper=(Vdc-Vp)/Ip;//ohm
+disp("Value of R should be less than "+string(R_upper)+" ohm")
+C=0.5*10^-6;//F//assumed
+disp(C*10^6,"Let value of C in micro F ")
+T=1/f//s
+R=T/C/log(1/(1-Eta));//ohm
+disp("For C=0.5 micro F, calculated value of R "+string(R)+" ohm. But it is not suitable");
+C=1*10^-6;//F//assumed
+disp(C*10^6,"Let value of C in micro F ")
+R=T/C/log(1/(1-Eta));//ohm
+disp("For C=1 micro F, calculated value of R "+string(R)+" ohm. It is suitable");
|