diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2360/CH6/EX6.11 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2360/CH6/EX6.11')
-rwxr-xr-x | 2360/CH6/EX6.11/ex6_11.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2360/CH6/EX6.11/ex6_11.sce b/2360/CH6/EX6.11/ex6_11.sce new file mode 100755 index 000000000..cacd2476a --- /dev/null +++ b/2360/CH6/EX6.11/ex6_11.sce @@ -0,0 +1,14 @@ +// Exa 6.11
+format('v',7);clc;clear;close;
+// Given data
+f = 1.5;//frequency in MHz
+f = f * 10^6;// in Hz
+C = 60;// in pF
+C = C * 10^-12;// in F
+R = 8;// in ohm
+R_SH = 0.02;// in ohm
+omega = 2*%pi*f;
+Qactual = 1/(omega*C*R);// true value of Q
+Qobserved = 1/(omega*C*(R+R_SH));// observed value of Q
+PerError = ((Qactual-Qobserved)/Qactual) * 100;// Percentage error in %
+disp(PerError,"The Percentage error in % is");
|