summaryrefslogtreecommitdiff
path: root/2345/CH15/EX15.23/Ex15_23.sce
diff options
context:
space:
mode:
Diffstat (limited to '2345/CH15/EX15.23/Ex15_23.sce')
-rwxr-xr-x2345/CH15/EX15.23/Ex15_23.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2345/CH15/EX15.23/Ex15_23.sce b/2345/CH15/EX15.23/Ex15_23.sce
new file mode 100755
index 000000000..46a3099a1
--- /dev/null
+++ b/2345/CH15/EX15.23/Ex15_23.sce
@@ -0,0 +1,15 @@
+//Finding inductance and energy
+//Example 15.23(pg. 407)
+clc
+clear
+l=0.5//length of coil in meters
+d=0.1//diameter of coil
+N=1500//no of turns of coil
+a=%pi*(d^2)/4//cross sectional area of coil in m^2
+Ur=1//relative permeability
+Uo=4*%pi*(10^-7)//permeability
+I=8//current in A
+L=((N^2)*a*Uo*Ur)/l//self inductance of coil in H
+E=(1/2)*L*(I^2)//Energy stored in Joules
+printf('Thus Self Inductance of coil is %2.3f H\n',L)
+printf('and Energy stored is %1.2f Joules',E)