summaryrefslogtreecommitdiff
path: root/3769/CH12/EX12.19/Ex12_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH12/EX12.19/Ex12_19.sce')
-rw-r--r--3769/CH12/EX12.19/Ex12_19.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3769/CH12/EX12.19/Ex12_19.sce b/3769/CH12/EX12.19/Ex12_19.sce
new file mode 100644
index 000000000..d9a8b0afd
--- /dev/null
+++ b/3769/CH12/EX12.19/Ex12_19.sce
@@ -0,0 +1,13 @@
+clear
+//Given
+L=500*10**-3
+I1=20*10**-3 //A
+I2=10*10**-3 //A
+
+//Calculation
+U1=0.5*L*I1**2
+U2=0.5*L*I2**2
+
+//Result
+printf("\n Magnetic energy stored in the coil is %0.3f *10**-4 J",U1*10**6)
+printf("\n New value of energy is %0.3f J",U2)