summaryrefslogtreecommitdiff
path: root/2240/CH27/EX26.2/EX26_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2240/CH27/EX26.2/EX26_2.sce
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 '2240/CH27/EX26.2/EX26_2.sce')
-rwxr-xr-x2240/CH27/EX26.2/EX26_2.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/2240/CH27/EX26.2/EX26_2.sce b/2240/CH27/EX26.2/EX26_2.sce
new file mode 100755
index 000000000..f37d994af
--- /dev/null
+++ b/2240/CH27/EX26.2/EX26_2.sce
@@ -0,0 +1,32 @@
+// Grob's Basic Electronics 11e
+// Chapter No. 26
+// Example No. 26_2
+clc; clear;
+// Calculate (a)the cutoff frequency fc; (b)Vout at 1 kHz; (c)Theta at 1 kHz (Assume Vin = 10 Vpp for all frequencies)
+
+// Given data
+
+R = 1*10^3; // Resistor=1 kOhms
+L = 50*10^-3 // Inductor=50 mHenry
+Vin = 10; // Input Voltage=10Vpp
+f = 1*10^3; // Frequency=1 kHz
+// To calculate fc
+
+fc = R/(2*%pi*L);
+disp (fc,'The Cutoff Frequency in Hertz')
+disp ('i.e 3.183 kHz')
+
+// To calculate Vout at fc
+
+Xl = 2*%pi*f*L;
+
+Zt = sqrt((R*R)+(Xl*Xl));
+
+Vout = Vin*(R/Zt);
+disp (Vout,'The Output Voltage in Vpp');
+disp ('Appox 9.52 Volts(p-p)')
+
+// To calculate Theta
+
+Theta = atand(-(Xl/R));
+disp (Theta,'The Phase angle (Theta z) in Degree');