summaryrefslogtreecommitdiff
path: root/608/CH40/EX40.12/40_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH40/EX40.12/40_12.sce')
-rwxr-xr-x608/CH40/EX40.12/40_12.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/608/CH40/EX40.12/40_12.sce b/608/CH40/EX40.12/40_12.sce
new file mode 100755
index 000000000..3b58d43f0
--- /dev/null
+++ b/608/CH40/EX40.12/40_12.sce
@@ -0,0 +1,18 @@
+//Problem 40.12: Determine the energy stored in a 10 nF capacitor when charged to 1 kV, and the average power developed if this energy is dissipated in 10 μs.
+
+//initializing the variables:
+e0 = 8.85E-12;
+er = 1;
+C = 10E-9; // in Farad
+V = 1000; // in Volts
+t = 10E-6; // in sec
+
+//calculation:
+//energy stored,Wf
+Wf = C*V*V/2
+//average power developed
+Pav = Wf/t
+
+printf("\n\n Result \n\n")
+printf("\n the energy stored is %.2E J",Wf)
+printf("\nthe average power developed is %.0f W",Pav) \ No newline at end of file