summaryrefslogtreecommitdiff
path: root/3769/CH12/EX12.21/Ex12_21.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH12/EX12.21/Ex12_21.sce')
-rw-r--r--3769/CH12/EX12.21/Ex12_21.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3769/CH12/EX12.21/Ex12_21.sce b/3769/CH12/EX12.21/Ex12_21.sce
new file mode 100644
index 000000000..8a9cf8825
--- /dev/null
+++ b/3769/CH12/EX12.21/Ex12_21.sce
@@ -0,0 +1,10 @@
+clear
+//Given
+L=2.0 //H
+i=2 //A
+
+//Calculation
+U=0.5*L*i**2
+
+//Result
+printf("\n Amount of energy spent during the period is %0.3f J", U)