summaryrefslogtreecommitdiff
path: root/3878/CH1/EX1.4/Ex1_4.sce
blob: f918a9ba0815011bdb1c4309e8ed85f1441f7511 (plain)
1
2
3
4
5
6
7
8
clear
// Variable Declaration
V_1byV_2=2// Volumetric ratio (given)
p_1=1.01325// The atmospheric pressure in bar(101325 kPa)

// Calculation
p_2=V_1byV_2*p_1// The new pressure in bar
printf("\n The new pressure,p_2= %0.4f  bar(abs.)",p_2)