From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 608/CH15/EX15.21/15_21.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 608/CH15/EX15.21/15_21.sce (limited to '608/CH15/EX15.21') 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 -- cgit