summaryrefslogtreecommitdiff
path: root/3836/CH14/EX14.6/Ex14_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3836/CH14/EX14.6/Ex14_6.sce')
-rw-r--r--3836/CH14/EX14.6/Ex14_6.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3836/CH14/EX14.6/Ex14_6.sce b/3836/CH14/EX14.6/Ex14_6.sce
new file mode 100644
index 000000000..c6384b66a
--- /dev/null
+++ b/3836/CH14/EX14.6/Ex14_6.sce
@@ -0,0 +1,12 @@
+clear
+//
+//Initialization
+l=10**-2 //Inductance in henry
+i=5 //current in ampere
+
+//Calculation
+s=0.5*l*i**2 //stored energy
+
+//Results
+printf("\n Stored Energy = %d mJ",s*10**3)
+