summaryrefslogtreecommitdiff
path: root/3836/CH15/EX15.4/Ex15_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH15/EX15.4/Ex15_4.sce')
-rw-r--r--3836/CH15/EX15.4/Ex15_4.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3836/CH15/EX15.4/Ex15_4.sce b/3836/CH15/EX15.4/Ex15_4.sce
new file mode 100644
index 000000000..2046a1c3e
--- /dev/null
+++ b/3836/CH15/EX15.4/Ex15_4.sce
@@ -0,0 +1,17 @@
+clear
+//
+
+//Initialisation
+Ic=2 //sinusoidal Current
+C=10*10**-3 //Capacitance
+w=25 //Angular Frequency
+
+
+
+//Calculation
+Xc=1/(w*C) //Reactance
+Vc= Ic*Xc //Voltage
+
+//Result
+printf("\n Voltage appear across the capacitor, V = %d V r.m.s",Vc)
+