summaryrefslogtreecommitdiff
path: root/2345/CH15/EX15.23
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH15/EX15.23
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2345/CH15/EX15.23')
-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)