summaryrefslogtreecommitdiff
path: root/1985/CH16/EX16.4/Chapter16_example4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1985/CH16/EX16.4/Chapter16_example4.sce')
-rwxr-xr-x1985/CH16/EX16.4/Chapter16_example4.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1985/CH16/EX16.4/Chapter16_example4.sce b/1985/CH16/EX16.4/Chapter16_example4.sce
new file mode 100755
index 000000000..4ad51b95d
--- /dev/null
+++ b/1985/CH16/EX16.4/Chapter16_example4.sce
@@ -0,0 +1,11 @@
+clc
+clear
+//Input data
+h=60//Height of the Niagra falls in m
+S=4190//Specific of water in J/kg.K
+
+//Calculations
+dt=(h*9.8)/S//The temperature difference in K
+
+//Output
+printf('The temperature difference is %3.5f K',dt)