summaryrefslogtreecommitdiff
path: root/3850/CH26/EX26.1/Ex26_1.sce
blob: 8dab47c9fee20a86e4208d83d4eba3100a456435 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

//To calculate the increase in Internal Energy in the process

//Example 26.1

clear;

clc;

delQ=418;//Heat given to the gas in Joules

delW=40;//Work done by the gas in Joules

delU=delQ-delW;//formula for finding increase the internal energy

printf("Increase in Internal Energy=%.f joule",delU);