summaryrefslogtreecommitdiff
path: root/182/CH8/EX8.5/example8_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /182/CH8/EX8.5/example8_5.sce
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 '182/CH8/EX8.5/example8_5.sce')
-rwxr-xr-x182/CH8/EX8.5/example8_5.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/182/CH8/EX8.5/example8_5.sce b/182/CH8/EX8.5/example8_5.sce
new file mode 100755
index 000000000..53c2a3c3d
--- /dev/null
+++ b/182/CH8/EX8.5/example8_5.sce
@@ -0,0 +1,20 @@
+// to calculate the equivalent parallel capacitance and resistance
+// example 8-5 in page 204
+clc;
+//Given dATA
+R3=10e+3;// resistance R3 in ohm
+f=100;//frequency in hertz
+Cs=0.068e-6; Rs=183.8; // series capacitance in farad and resistance in ohm
+//Calculation
+Xs=1/(2*%pi*f*Cs);// series capacitive reactance in ohm
+Rp=(Rs*Rs+Xs*Xs)/Rs;//equivalent parallel resistance in ohm
+Xp=(Rs*Rs+Xs*Xs)/Xs;//equivalent parallel capacitive reactance in ohm
+Cp=1/(2*%pi*f*Xp);// equivalent capacitance in farad
+R4=C1*R3/Cp;// parallel resistance in ohm
+R1=R3*Rp/R4;// parallel resistance in ohm
+printf("Rp=%.2f M-ohm\nCp=%.3f Micro-F\nR1=%.2f M-ohm\nR4=%.1f K-ohm",Rp/10^6,Cp*10^6,R1/10^6,R4/1000);
+//result
+//Rp=2.98 M-ohm
+//Cp=0.068 Micro-F
+//R1=2.03 M-ohm
+//R4=14.7 K-ohm \ No newline at end of file