summaryrefslogtreecommitdiff
path: root/3769/CH12/EX12.20/Ex12_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '3769/CH12/EX12.20/Ex12_20.sce')
-rw-r--r--3769/CH12/EX12.20/Ex12_20.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3769/CH12/EX12.20/Ex12_20.sce b/3769/CH12/EX12.20/Ex12_20.sce
new file mode 100644
index 000000000..4ddab89eb
--- /dev/null
+++ b/3769/CH12/EX12.20/Ex12_20.sce
@@ -0,0 +1,16 @@
+clear
+//Given
+E=12
+R=30.0 //ohm
+L=0.22
+
+//Calculation
+I0=E/R
+I=I0/2.0
+P=E*I
+dl=(E-(I*R))/L
+du=L*I*dl
+
+//Result
+printf("\n (i) Energy being delivered by the battery is %0.3f W", P)
+printf("\n (ii) ENergy being stored in the magnetic field of inductor is %0.3f W",du)