summaryrefslogtreecommitdiff
path: root/3876/CH2/EX2.10/Ex2_10.sce
blob: 82504e0ada2c0949fa779eb452aacbaee8485bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Chapter 2 Gases

clc;
clear;

//Initialisation of Variables
V= 0.5 //lit
T= 50 //C
n= 1 //mole
R= 0.0821 //lit atm mole^-1
a= 4.28*10**-2 //litres mole^-1
b= 3.6 //arm mole^-2 lit^2

//CALCULATIONS
P= n*R*(273+T)/V
P1= (n*R*(T+273)/(V-n*a))-(b/V**2)

//RESULTS
mprintf("Pressure = %.0f atm",P)
mprintf("\nPressure using vanderwals equation= %.1f atm",P1)