summaryrefslogtreecommitdiff
path: root/2210/CH5/EX5.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2210/CH5/EX5.1
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 '2210/CH5/EX5.1')
-rwxr-xr-x2210/CH5/EX5.1/5_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2210/CH5/EX5.1/5_1.sce b/2210/CH5/EX5.1/5_1.sce
new file mode 100755
index 000000000..aeb560ba1
--- /dev/null
+++ b/2210/CH5/EX5.1/5_1.sce
@@ -0,0 +1,16 @@
+//Chapter 5, Problem 1
+clc
+R=3 //resistance in ohm
+L=20*10^-9 //inductance in henry
+f0=500e6 //frequency in hertz
+
+//calculation
+Z=R
+C=(1/(2*%pi*f0*sqrt(L)))^2
+Q=2*%pi*f0*L/R
+B=f0/Q
+
+printf("(a) Impedance at resonance = %d ohm\n\n",Z)
+printf("(b) Value of series capacitor = %.3f pF\n\n",C*10^12)
+printf("(c) Q of the circuit at resonance = %.3f\n\n",Q)
+printf("(d) 3 dB bandwidth of the circuit = %.3f Mhz\n\n",B/10^6)