blob: d29546734bc06877bedf3e9a6f916d8898f2b3dd (
plain)
1
2
3
4
5
6
7
|
//clc()
//work is done on the system, hence, W is negative
W = - 2 * 745.7;//J/s
//heat is transferres to the surrounding, hence, heat transferred is negative,
Q = -3000;//kJ/h
U = Q*1000/3600 - W;
disp("J/s",U,"Change in internal energy = ")
|