summaryrefslogtreecommitdiff
path: root/884/CH5/EX5.6/Example5_6.sce
blob: b2ec2e6fcaf6eb461ceb53ceb46604a078766766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Ideal Gas Equation

clear;
clc;

printf("\t Example 5.6\n");

P1=1.2;// pressure initial, atm
T1=18+273;//temperature initial, K
T2=85+273;//temperature final, K
//volume is constant

P2=P1*T2/T1;// pressure final,atm

printf("\t the final pressure is : %4.2f atm\n",P2);

//End