diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1571/CH12/EX12.1/Chapter12_Example1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1571/CH12/EX12.1/Chapter12_Example1.sce')
-rwxr-xr-x | 1571/CH12/EX12.1/Chapter12_Example1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1571/CH12/EX12.1/Chapter12_Example1.sce b/1571/CH12/EX12.1/Chapter12_Example1.sce new file mode 100755 index 000000000..e77f7f3ba --- /dev/null +++ b/1571/CH12/EX12.1/Chapter12_Example1.sce @@ -0,0 +1,16 @@ +clc
+clear
+
+//INPUT
+t1=300;//temperature of the surroundings in K
+t2=900;//temperature of the hot body p in K
+t3=500;//temperature of the hot body q in K
+a=5.67*10^-8;//stefan boltzmann constant in W/m^2.K^4
+
+//CALCULATIONS
+q1=a*(t2^4-t1^4);//heat lost from hot body p in w/m^2
+q2=a*(t3^4-t1^4);//heat lost from hot body q in w/m^2
+q=q1/q2;//ratio of heat lost from two substances
+
+//OUTPUT
+mprintf('ratio of heat lost from two substances is %3.2f',q)
|