blob: f8a901aebe61bcf2fa00d34abcf2b0530c13b719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc
clear
//INPUT
p1=8;//intial pressure in cm of hg
p2=6;//final pressure in cm of hg
v1=1000;//intial volume in cc
v2=1190;//final volume in cc
//CALCULATIONS
y=log(p1/p2)/log(v2/v1);//coefficient of expansion
//OUTPUT
mprintf('the coefficent of expansion is %3.2f',y)
|