summaryrefslogtreecommitdiff
path: root/896/CH5/EX5.1/1.sce
blob: 6f7d7512cffc9bcb1acd657f7401be44b307f144 (plain)
1
2
3
4
5
6
7
8
9
clc
//Example 5.1
//Calculate the increase in temperature due to falling water of waterfall
g=9.81;//m/s^2 acc. due to gravity
dz=100;//m Height of waterfall
du=g*dz;//J/kg Change in internal energy
Cv=4184;//J/kg/K;
dT=du/Cv//K Change in temperature
printf("Change in temperature is %f K or degree centigrade",dT);