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 --- 1571/CH3/EX3.8/Chapter3_Example8.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 1571/CH3/EX3.8/Chapter3_Example8.sce (limited to '1571/CH3/EX3.8/Chapter3_Example8.sce') diff --git a/1571/CH3/EX3.8/Chapter3_Example8.sce b/1571/CH3/EX3.8/Chapter3_Example8.sce new file mode 100755 index 000000000..cd1d02f8a --- /dev/null +++ b/1571/CH3/EX3.8/Chapter3_Example8.sce @@ -0,0 +1,21 @@ +clc +clear + +//INPUT DATA +d=0.02;//diameter of the copper wire in cm +i=1;//current in amp +T=100;//maximum steady temperature in deg.C +r=2.1;//resistance of the wire in ohm cm +J=4.2;//mechanical equivalent of heat in j/cal +a=3.14*d^2/4;//area of the copper wire in sq.cm +a2=1;//area of the copper surface in sq.cm + +//CALCULATIONS +//we know that if r is the resistance of the wire through which current i flows,then the electrical energy spent =i^2*r j/sec +l=1/(2*3.14*d/2);//length corresponding to the area in cm +R=r*l/a;//resistance of the copper wirein ohm +w=R*a2^2;//work done in joule +h=w/J;//heat devoleped in cal + +//OUTPUT +mprintf('the heat developed is %3f calories',h) -- cgit