From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2345/CH15/EX15.23/Ex15_23.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 2345/CH15/EX15.23/Ex15_23.sce (limited to '2345/CH15/EX15.23') 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) -- cgit