summaryrefslogtreecommitdiff
path: root/2621/CH10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2621/CH10
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 '2621/CH10')
-rw-r--r--2621/CH10/EX10.1/Ex10_1.sce17
-rw-r--r--2621/CH10/EX10.2/Ex10_2.sce20
-rw-r--r--2621/CH10/EX10.3/Ex10_3.sce16
-rw-r--r--2621/CH10/EX10.4/Ex10_4.sce17
-rw-r--r--2621/CH10/EX10.5/Ex10_5.sce14
-rw-r--r--2621/CH10/EX10.6/Ex10_6.sce15
6 files changed, 99 insertions, 0 deletions
diff --git a/2621/CH10/EX10.1/Ex10_1.sce b/2621/CH10/EX10.1/Ex10_1.sce
new file mode 100644
index 000000000..64cbfa63e
--- /dev/null
+++ b/2621/CH10/EX10.1/Ex10_1.sce
@@ -0,0 +1,17 @@
+// Example 10.1
+clc;
+clear;
+close;
+// Given data
+format('v',6);
+Idc= 300;// in mA
+C= 200;// in µF
+Vmax= 24;// in V
+Vrms= 2.4*Idc/C;//in V
+Vr_peak= sqrt(3)*Vrms;// in V
+Vdc= Vmax-Vr_peak;// in V
+disp(Vdc,"The minimum input voltage in volts is : ")
+
+
+
+
diff --git a/2621/CH10/EX10.2/Ex10_2.sce b/2621/CH10/EX10.2/Ex10_2.sce
new file mode 100644
index 000000000..17b1fa97d
--- /dev/null
+++ b/2621/CH10/EX10.2/Ex10_2.sce
@@ -0,0 +1,20 @@
+// Example 10.2
+clc;
+clear;
+close;
+// Given data
+format('v',6);
+VR= 12;// in V
+IL= 0.5;// in A
+RL= 25;// in Ω
+// Resistanc required,
+R= VR/IL;// in Ω
+VL= IL*RL;// in V
+Vout= VR+VL;//output voltage in V
+Vin= Vout+2;// input voltage in V
+disp(Vin,"The input voltage in volts is : ")
+
+
+
+
+
diff --git a/2621/CH10/EX10.3/Ex10_3.sce b/2621/CH10/EX10.3/Ex10_3.sce
new file mode 100644
index 000000000..66cd05f53
--- /dev/null
+++ b/2621/CH10/EX10.3/Ex10_3.sce
@@ -0,0 +1,16 @@
+// Example 10.3
+clc;
+clear;
+close;
+// Given data
+format('v',6);
+R1= 240;// in Ω
+R2= 1.2*10^3;// in Ω
+// Regulated output voltage in the circuit,
+Vout= 1.25*(1+R2/R1);// in V
+disp(Vout,"The regulated output voltage in volts is : ");
+
+
+
+
+
diff --git a/2621/CH10/EX10.4/Ex10_4.sce b/2621/CH10/EX10.4/Ex10_4.sce
new file mode 100644
index 000000000..a05780b5d
--- /dev/null
+++ b/2621/CH10/EX10.4/Ex10_4.sce
@@ -0,0 +1,17 @@
+// Example 10.4
+clc;
+clear;
+close;
+// Given data
+format('v',6);
+V_REG= 15;// in V
+I_Q= 10*10^-3;// in A
+R1= 40;// in Ω
+// When potentiometer R2=0 Ω (minimum)
+R2= 0;// in Ω
+Vout= (1+R2/R1)*V_REG+I_Q*R2;
+disp(Vout,"The minimum output voltage in volts is : ");
+// When potentiometer R2=200 Ω (maximum)
+R2= 200;// in Ω
+Vout= (1+R2/R1)*V_REG+I_Q*R2;
+disp(Vout,"The minimum output voltage in volts is : ");
diff --git a/2621/CH10/EX10.5/Ex10_5.sce b/2621/CH10/EX10.5/Ex10_5.sce
new file mode 100644
index 000000000..b3e07a68f
--- /dev/null
+++ b/2621/CH10/EX10.5/Ex10_5.sce
@@ -0,0 +1,14 @@
+// Example 10.5
+clc;
+clear;
+close;
+// Given data
+format('v',6);
+V_REF= 1.25;// in V
+R1= 2.5*10^3;// in Ω
+R2= 1*10^3;// in Ω
+I= V_REF/R2;// in A
+// The output voltage,
+Vout= I*(R1+R2);// in V
+disp(Vout,"The regulated output voltage in volts is : ")
+
diff --git a/2621/CH10/EX10.6/Ex10_6.sce b/2621/CH10/EX10.6/Ex10_6.sce
new file mode 100644
index 000000000..aebe3121e
--- /dev/null
+++ b/2621/CH10/EX10.6/Ex10_6.sce
@@ -0,0 +1,15 @@
+// Example 10.6
+clc;
+clear;
+close;
+// Given data
+format('v',6);
+V_REF= 1.25;// in V
+R1= 3*10^3;// in Ω
+R2= 1*10^3;// in Ω
+Vin= 20;// in V
+Vout= V_REF*(R1+R2)/R2;// output voltage in volts
+// Duty cycle,
+D= Vout/Vin*100;// in %
+disp("The duty cycle is "+string(D)+" %")
+