summaryrefslogtreecommitdiff
path: root/2885/CH1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2885/CH1
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 '2885/CH1')
-rwxr-xr-x2885/CH1/EX1.1/ex1_1.sce22
-rwxr-xr-x2885/CH1/EX1.2/ex1_2.sce22
-rwxr-xr-x2885/CH1/EX1.3/ex1_3.sce25
-rwxr-xr-x2885/CH1/EX1.4/ex1_4.sce38
4 files changed, 107 insertions, 0 deletions
diff --git a/2885/CH1/EX1.1/ex1_1.sce b/2885/CH1/EX1.1/ex1_1.sce
new file mode 100755
index 000000000..d2cc84a71
--- /dev/null
+++ b/2885/CH1/EX1.1/ex1_1.sce
@@ -0,0 +1,22 @@
+//Find the range of tolerance
+clear;
+clc;
+//soltion
+//given
+
+//color coding
+orange=3;
+gold=5;
+yellow=4;
+violet=7;
+//band pattern
+band1=yellow;
+band2=violet;
+band3=orange;
+band4=gold;
+//resistor color coding
+r=(band1*10+band2)*10^(band3);
+tol=r*(band4/100)//tolerance
+ulr=r+tol;//upper limit of resistance
+llr=r-tol;//lower limit of resistance
+printf('The Range of resistance is %.2f kΩ to %.2f kΩ',llr/1000,ulr/1000);
diff --git a/2885/CH1/EX1.2/ex1_2.sce b/2885/CH1/EX1.2/ex1_2.sce
new file mode 100755
index 000000000..5262e2892
--- /dev/null
+++ b/2885/CH1/EX1.2/ex1_2.sce
@@ -0,0 +1,22 @@
+//Find the range of tolerance
+clear;
+clc;
+//soltion
+//given
+
+//color coding
+blue=6;
+gold=-1;
+gray=8;
+silver=10;
+//band pattern
+band1=gray;
+band2=blue;
+band3=gold;
+band4=silver;
+//resistor color coding
+r=(band1*10+band2)*10^(band3);
+tol=r*(band4/100)//tolerance
+ulr=r+tol;//upper limit of resistance
+llr=r-tol;//lower limit of resistance
+printf('The Range of resistance is %.2f Ω to %.2f Ω',llr,ulr);
diff --git a/2885/CH1/EX1.3/ex1_3.sce b/2885/CH1/EX1.3/ex1_3.sce
new file mode 100755
index 000000000..87d8749d2
--- /dev/null
+++ b/2885/CH1/EX1.3/ex1_3.sce
@@ -0,0 +1,25 @@
+
+//Find the equivalent current source
+clear;
+clc;
+//soltion
+//given
+Vs=2;//Volts //dc voltage source
+Rs=1;//ohm //internal resistance
+Rl=1;//ohm //load resistance
+Ise=Vs/Rs;//ampere //equivalent current source
+
+// In accordance to figure 1.23a
+Il1=Ise*(Rs/(Rs+Rl));//using current divider concept
+Vl1=Il1*Rl;
+printf("\nIn accordance to figure 1.23a \n");
+printf("The Load current (current source) Il= %dA\n",Il1);
+printf("The Load voltage (current source) Vl= %dV\n\n",Vl1);
+
+// In accordance to figure 1.23b
+Vl2=Vs*(Rs/(Rs+Rl));//using voltage divider concept
+Il2=Vl2/Rl;
+printf("\nIn accordance to figure 1.23b \n");
+printf("The Load voltage (voltage source) Vl= %dV\n",Vl2);
+printf("The Load current (voltage source) Il= %dA\n\n",Il2);
+printf("Therefore they both provide same voltage and current to load");
diff --git a/2885/CH1/EX1.4/ex1_4.sce b/2885/CH1/EX1.4/ex1_4.sce
new file mode 100755
index 000000000..69cbc2dc6
--- /dev/null
+++ b/2885/CH1/EX1.4/ex1_4.sce
@@ -0,0 +1,38 @@
+
+//Find percentage variation in load current and load voltage
+clear;
+clc;
+//soltion
+//given
+Vs=10;//volt//Supply voltage
+Rs=100;//ohm//internal resistance
+
+// In accordance to figure 1.24a
+//For 1Ω - 10 Ω
+Rl11=1;//ohm//min extreme value of Rl
+Rl12=10;//ohm//max extreme value of Rl
+Il11=Vs/(Rs+Rl11);
+Il12=Vs/(Rs+Rl12);
+Pi1=(Il11-Il12)*100/Il11;//Percentage variation in current
+Vl11=Il11*Rl11;
+Vl12=Il12*Rl12;
+Pv1=(Vl12-Vl11)*100/Vl12;//Percentage variation in voltage
+printf("\nIn accordance to figure 1.24a \n");
+printf("Percentage variation in Current(1-10 Ω) %.2f percent\n",Pi1);
+printf("Percentage variation in Voltage(1-10 Ω) %.1f percent\n\n",Pv1);
+
+// In accordance to figure 1.24b
+//For 1kΩ - 10kΩ
+Rl21=1000;//ohm//min extreme value of Rl
+Rl22=10000;//ohm//max extreme value of Rl
+Il21=Vs/(Rs+Rl21);
+Il22=Vs/(Rs+Rl22);
+Pi2=(Il21-Il22)*100/Il21;//Percentage variation in current
+Vl21=Il21*Rl21;
+Vl22=Il22*Rl22;
+Pv2=(Vl22-Vl21)*100/Vl22;//Percentage variation in voltage
+printf("\nIn accordance to figure 1.24b \n");
+printf("Percentage variation in Current(1-10 Ω) %d percent \n",Pi2);
+printf("Percentage variation in Voltage(1-10 Ω) %.1f percent \n\n",Pv2);
+// In book the percentage variation in voltage(1kΩ-10kΩ) is 9 percent due to
+// the incorrect value of Il22 i.e. 0.000999 Amp correct value is 0.0009901 Amp