summaryrefslogtreecommitdiff
path: root/3871/CH12/EX12.30
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH12/EX12.30
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH12/EX12.30')
-rw-r--r--3871/CH12/EX12.30/Ex12_30.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/3871/CH12/EX12.30/Ex12_30.sce b/3871/CH12/EX12.30/Ex12_30.sce
new file mode 100644
index 000000000..9b676f21b
--- /dev/null
+++ b/3871/CH12/EX12.30/Ex12_30.sce
@@ -0,0 +1,25 @@
+//=====================================================================================
+//Chapter 12 example 30
+
+clc;clear all;
+
+//variable declaration
+f1 = 1*10^6; //frequency in Hz
+f2 = 2*10^6; //frequency in Hz
+C1 = 480*10^-12; //capacitance in F
+C2 = 90*10^-12; //capacitance in F
+R = 10; //resistance
+
+//calculations
+Cd = (C1-(4*C2))/3; //self capacitance of the coil in pF
+Q1 = 1/(2*%pi*f1*(C1+Cd)*R); //the indicated or effective Q of the coil
+Q11 = 1/(2*%pi*f1*(C1)*R); //the true Q of the first instrument
+Q2 = 1/(2*(%pi)*f2*(C2+Cd)*R); //the indicated or effective Q for the second instrument
+Q22 = 1/(2*(%pi)*f2*(C2)*R); //the true Q of the second instrument
+
+//result
+mprintf("the indicated or effective Q of the coil = %3.1f ",Q1);
+mprintf("\nthe true Q of the first instrument = %3.3f",Q11);
+mprintf("\nthe indicated or effective Q for the second instrument = %3.3f",Q2);
+mprintf("\nthe true Q of the second instrument = %3.2f",Q22);
+