summaryrefslogtreecommitdiff
path: root/1985/CH16/EX16.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1985/CH16/EX16.1
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 '1985/CH16/EX16.1')
-rwxr-xr-x1985/CH16/EX16.1/Chapter16_example1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1985/CH16/EX16.1/Chapter16_example1.sce b/1985/CH16/EX16.1/Chapter16_example1.sce
new file mode 100755
index 000000000..4bf4c5e54
--- /dev/null
+++ b/1985/CH16/EX16.1/Chapter16_example1.sce
@@ -0,0 +1,13 @@
+clc
+clear
+//Input data
+T1=(75+273)//Initial temperature in K
+T2=(60+273)//Final temperature in K
+T0=(30+273)//Surrounding temperature in K
+t1=(5*60)//Time taken by the liquid to cool from 75 degrees C to 60 degrees C
+
+//Calculations
+T3=(T2-T0)^2/(T1-T0)+T0//The temperature of the body after the next 5 minutes in K
+
+//Output
+printf('The temperature of the body after the next 5 minutes is %3.0f K',T3)