diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1316/CH2/EX2.2/example2_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1316/CH2/EX2.2/example2_2.sce')
-rw-r--r-- | 1316/CH2/EX2.2/example2_2.sce | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/1316/CH2/EX2.2/example2_2.sce b/1316/CH2/EX2.2/example2_2.sce new file mode 100644 index 000000000..239adea00 --- /dev/null +++ b/1316/CH2/EX2.2/example2_2.sce @@ -0,0 +1,36 @@ +//Chapter 2
+//Example 2.2
+//Page 58
+
+clear;
+clc;
+
+R1 = 10;
+Vs = 5;
+R_low = 4;
+R_high = 12;
+
+
+printf("a. The solution is given by VsR2/R1+R2.For R2=4k.ohm,we have\n")
+//Calculation of Vd
+x = (Vs*R_low)/(R1+R_low);
+printf("VD = %.2f V\n",x)
+printf("For R2=12k.ohm,we have\n")
+//Calculation of Vd
+y = (Vs*R_high)/(R1+R_high);
+printf("VD = %.2f V\n",y)
+printf("b. Thus the voltage varies from %.2f to %.2f V",x,y)
+printf("c. The range of output impedance is found from the parallel \n combination of R1 and R2 for the minimum and maximum of R2.\n Simple parallel resistance computation shows that this will be from ")
+//Calculation of parallel resistances
+a = (R1*R_low)/(R1+R_low);
+b = (R1*R_high)/(R1+R_high);
+printf("%.2f to %.2f k.ohm",a,b)
+printf("d. The power dissipated by the sensor can be determined most easily from V^2/R2,as the voltage across R2 has been calculated.The power dissipated varies from ")
+c = (Vs^2)/R_high;
+d = (Vs^2)/R_low;
+printf("%.4f to %.4f W",c,d)
+
+
+
+
+
|