summaryrefslogtreecommitdiff
path: root/608/CH28/EX28.03
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH28/EX28.03
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 '608/CH28/EX28.03')
-rwxr-xr-x608/CH28/EX28.03/28_03.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/608/CH28/EX28.03/28_03.sce b/608/CH28/EX28.03/28_03.sce
new file mode 100755
index 000000000..1590663fd
--- /dev/null
+++ b/608/CH28/EX28.03/28_03.sce
@@ -0,0 +1,17 @@
+//Problem 28.03: A coil having inductance L is connected in series with a variable capacitor C. The circuit possesses stray capacitance CS which is assumed to be constant and effectively in parallel with the variable capacitor C. When the capacitor is set to 1000 pF the resonant frequency of the circuit is 92.5 kHz, and when the capacitor is set to 500 pF the resonant frequency is 127.8 kHz Determine the values of (a) the stray capacitance CS, and (b) the coil inductance L.
+
+//initializing the variables:
+C1 = 1000e-12; // IN fARADS
+C2 = 500e-12; // IN fARADS
+fr1 = 92500; // in Hz
+fr2 = 127800; // in Hz
+
+//calculation:
+//For a series R–L–C circuit the resonant frequency fr is given by:
+//fr = 1/(2pi*(L*C)^2)
+Cs = ((C1 - C2)/((fr2/fr1)^2 - 1)) - C2
+L = 1/((C1 + Cs)*(2*%pi*fr1)^2)
+
+printf("\n\n Result \n\n")
+printf("\n (a)stray capacitance, Cs is %.2E F ",Cs)
+printf("\n (b)inductance, L is %.2E H ",L) \ No newline at end of file