summaryrefslogtreecommitdiff
path: root/2330/CH4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2330/CH4
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2330/CH4')
-rwxr-xr-x2330/CH4/EX4.1/ex4_1.sce20
-rwxr-xr-x2330/CH4/EX4.2/ex4_2.sce20
-rwxr-xr-x2330/CH4/EX4.3/ex4_3.sce20
-rwxr-xr-x2330/CH4/EX4.6/ex4_6.sce19
-rwxr-xr-x2330/CH4/EX4.8/ex4_8.sce23
-rwxr-xr-x2330/CH4/EX4.9/ex4_9.sce17
6 files changed, 119 insertions, 0 deletions
diff --git a/2330/CH4/EX4.1/ex4_1.sce b/2330/CH4/EX4.1/ex4_1.sce
new file mode 100755
index 000000000..d82b9de45
--- /dev/null
+++ b/2330/CH4/EX4.1/ex4_1.sce
@@ -0,0 +1,20 @@
+// Example 4.1
+format('v',5)
+clc;
+clear;
+close;
+// given data
+V2rms= 40;// in V
+R_L= 20;// in Ω
+V2peak= V2rms/0.707;// in V
+Vout_peak= V2peak;// in V
+// The dc voltage across the load resistor
+Vdc=0.318*Vout_peak;// in V
+//The peak inverse voltage across the diode
+PIV= V2peak;// in V
+Idc= Vdc/R_L;// in A
+// The dc current through the diode
+I_diode= Idc;// in A
+disp(Vdc,"The dc voltage across the load resistor in volts is : ");
+disp(PIV,"The peak inverse voltage across the diode in volts is : ");
+disp(I_diode,"The dc current through the diode in A is : ")
diff --git a/2330/CH4/EX4.2/ex4_2.sce b/2330/CH4/EX4.2/ex4_2.sce
new file mode 100755
index 000000000..ba0df1623
--- /dev/null
+++ b/2330/CH4/EX4.2/ex4_2.sce
@@ -0,0 +1,20 @@
+// Example 4.2
+format('v',5)
+clc;
+clear;
+close;
+// given data
+Vrms= 40;// in V
+R_L= 20;// in Ω
+V2peak= Vrms/0.707;// in V
+Vout_peak= V2peak/2;// in V
+// The dc load voltage
+Vdc=0.636*Vout_peak;// in V
+// The peak inverse voltage across each diode
+PIV= V2peak;// in V
+Idc= Vdc/R_L;// in A
+// The dc current through each diode
+I_diode= Idc/2;// in A
+disp(Vdc,"The dc load voltage in volts is : ");
+disp(PIV,"The peak inverse voltage across each diode in volts is : ");
+disp(I_diode,"The dc current through each diode in A is : ")
diff --git a/2330/CH4/EX4.3/ex4_3.sce b/2330/CH4/EX4.3/ex4_3.sce
new file mode 100755
index 000000000..57c1da97f
--- /dev/null
+++ b/2330/CH4/EX4.3/ex4_3.sce
@@ -0,0 +1,20 @@
+// Example 4.3
+format('v',5)
+clc;
+clear;
+close;
+// given data
+Vrms= 40;// in V
+R_L= 20;// in Ω
+V2peak= Vrms/0.707;// in V
+Vout_peak= V2peak;// in V
+// The value of Vdc
+Vdc=0.636*Vout_peak;// in V
+// The value of PIV
+PIV= V2peak;// in V
+Idc= Vdc/R_L;// in A
+//The value of I_diode
+I_diode= Idc/2;// in A
+disp(Vdc,"The value of Vdc in volts is : ");
+disp(PIV,"The value of PIV in volts is : ");
+disp(I_diode,"The value of I_diode in A is : ")
diff --git a/2330/CH4/EX4.6/ex4_6.sce b/2330/CH4/EX4.6/ex4_6.sce
new file mode 100755
index 000000000..5162227f2
--- /dev/null
+++ b/2330/CH4/EX4.6/ex4_6.sce
@@ -0,0 +1,19 @@
+// Example 4.6
+format('v',5)
+clc;
+clear;
+close;
+// given data
+Vdc= 56.6;// in V
+R_L= 100;// in Ω
+f=120;// in Hz
+C= 1000;// in µF
+C= C*10^-6;// in F
+V2peak= Vdc;// in V
+Idc= Vdc/R_L;// in A
+// The peak-to-peak ripple
+Vrip= Idc/(f*C);// in V
+// The dc load voltage
+Vdc= V2peak-Vrip/2;// in V
+disp(Vrip,"The peak-to-peak ripple in volts is : ");
+disp(Vdc,"The dc load voltage in volts is : ")
diff --git a/2330/CH4/EX4.8/ex4_8.sce b/2330/CH4/EX4.8/ex4_8.sce
new file mode 100755
index 000000000..2addc6d52
--- /dev/null
+++ b/2330/CH4/EX4.8/ex4_8.sce
@@ -0,0 +1,23 @@
+// Example 4.8
+format('v',5)
+clc;
+clear;
+close;
+// given data
+V2rms= 12.6;// in V
+V_Z= 6.8;// in V
+V2peak= V2rms/0.707;// in V
+Vin= V2peak;// in V
+Vout= V_Z;// in V
+R_L= 1.2;// in kΩ
+R_L= R_L*10^3;//in Ω
+Rs= 1;// in kΩ
+Rs= Rs*10^3;// in Ω
+Is= (Vin-Vout)/Rs;// in A
+I_L= Vout/R_L;// in A
+// The zener current
+Iz= Is-I_L;// in A
+Iz= Iz*10^3;// in mA
+disp(Iz,"The zener current in mA is : ")
+
+// Note: The calculation in the book is not accurate.
diff --git a/2330/CH4/EX4.9/ex4_9.sce b/2330/CH4/EX4.9/ex4_9.sce
new file mode 100755
index 000000000..9fa550aa5
--- /dev/null
+++ b/2330/CH4/EX4.9/ex4_9.sce
@@ -0,0 +1,17 @@
+// Example 4.9
+format('v',5)
+clc;
+clear;
+close;
+// given data
+C= 100;//in µF
+C= C*10^-6;// in F
+Rz= 5;//in Ω
+Rs= 1*10^3;//in Ω
+Idc= 11*10^-3;//in A
+f=120;//in Hz
+Vin_rip= Idc/(f*C);// in V
+// The ripple across the load resistance
+Vout_rip= Rz*Vin_rip/(Rs+Rz);//in A
+Vout_rip= Vout_rip*10^3;// in mV
+disp(Vout_rip,"The ripple across the load resistance in mV is : ")