summaryrefslogtreecommitdiff
path: root/608/CH15/EX15.21
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH15/EX15.21
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/CH15/EX15.21')
-rwxr-xr-x608/CH15/EX15.21/15_21.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/608/CH15/EX15.21/15_21.sce b/608/CH15/EX15.21/15_21.sce
new file mode 100755
index 000000000..26283b1fe
--- /dev/null
+++ b/608/CH15/EX15.21/15_21.sce
@@ -0,0 +1,12 @@
+//Problem 15.21: A series circuit comprises a coil of resistance 2 ohms and inductance 60 mH, and a 30 μF capacitor. Determine the Qfactor of the circuit at resonance.
+
+//initializing the variables:
+L = 60E-3; // in Henry
+C = 30E-6; // in Farads
+R = 2; // in ohms
+
+//calculation:
+Q = ((L/C)^0.5)/R
+
+printf("\n\n Result \n\n")
+printf("\n At resonance, Q-factor = %.2f",Q) \ No newline at end of file