blob: 928c3448fc14c7b79a92d57cf35125c3656ebc6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Example 10_8
clc();
clear;
//To find the final volume of gas
t1=27 //Units in Centigrade
t1=t1+273 //Units in Kelvin
t2=547 //Units in Centigrade
t2=t2+273 //Units in Kelvin
t1=27 //Units in Centigrade
t1=t1+273 //Units in Kelvin
t1=27 //Units in Centigrade
t1=t1+273 //Units in Kelvin
p2=3700 //units in cm Hg
p1=74 //units in cm Hg
v1_v2=1/((t1/t2)*(p2/p1)) //In terms of V1
printf("The final volume of gas in terms of original volume is V2=%.5f*V1",v1_v2)
|