summaryrefslogtreecommitdiff
path: root/3836/CH13/EX13.7
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH13/EX13.7')
-rw-r--r--3836/CH13/EX13.7/Ex13_7.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3836/CH13/EX13.7/Ex13_7.sce b/3836/CH13/EX13.7/Ex13_7.sce
new file mode 100644
index 000000000..da840201b
--- /dev/null
+++ b/3836/CH13/EX13.7/Ex13_7.sce
@@ -0,0 +1,11 @@
+clear
+//Initialization
+C1=10*10**-6 //capacitance in Farad
+V=100 //voltage
+
+//Calculation
+E=(0.5)*(C1*V**2) //Energy stored
+
+//Results
+printf("\n E = %.1f mJ",E*10**3)
+