summaryrefslogtreecommitdiff
path: root/3850/CH39/EX39.2/Ex39_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3850/CH39/EX39.2/Ex39_2.sce')
-rw-r--r--3850/CH39/EX39.2/Ex39_2.sce28
1 files changed, 28 insertions, 0 deletions
diff --git a/3850/CH39/EX39.2/Ex39_2.sce b/3850/CH39/EX39.2/Ex39_2.sce
new file mode 100644
index 000000000..2dd0b42e4
--- /dev/null
+++ b/3850/CH39/EX39.2/Ex39_2.sce
@@ -0,0 +1,28 @@
+
+//To Calculate the Reactance of Capacitor for different frequencies of Alternating Currents
+
+//Example 39.2
+
+clear;
+
+clc;
+
+C=200*10^-6;//Capacitance of the Capacitor in Faraday
+
+f1=10;//Frequency of first AC source in Hz
+
+f2=50;//Frequency of Second AC Source in Hz
+
+f3=500;//Frequency of Third AC Source in Hz
+
+Xc1=1/(2*%pi*f1*C);//Reactance of the Capacitor when connected to 10 Hz AC source
+
+printf("(a) Reactance of capacitor for 10 hz source = %.0f ohms",Xc1);
+
+Xc2=1/(2*%pi*f2*C);//Reactance of the Capacitor when connected to 50 Hz AC source
+
+printf("\n (b) Reactance of capacitor for 15 hz source= %.0f ohms",Xc2);
+
+Xc3=1/(2*%pi*f3*C);//Reactance of the Capacitor when connected to 500 Hz AC source
+
+printf("\n (c) Reactance of capacitor for 500 hz source = %.1f ohms",Xc3);