summaryrefslogtreecommitdiff
path: root/3843/CH4/EX4.2/Ex4_2.sce
blob: 48c3e05507dc0f7b98e34aabb79f76aaf09d0ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Example 4_2
clc;funcprot(0);
// Given data
P_in=5;// hp
t=1;// hour
// By assumption
Q=0;// J
delPE=0;// J
delKE=0;// J

// Calculation
W=-P_in*t*(746)*(3600);// The work input in J
delU=-W;// The increase in internal energy in J
printf("\nThe increase in internal energy,delU=%1.3e J",delU);