CAPE COURSE: Tabulation of values

The vapour pressure-temperature relationship for many organic substances is reasonably well approximated by the following equation:
displaymath27

where P* is vapour pressure in bar or atmospheres, and T is the Kelvin temperature. Tb is the 1bar or 1atm boiling point, also in Kelvin.

Now, for mixtures of butane and pentane, write some programs to try out this relationship. Where Tb at 1atm for butane is 272.5K, and for pentane it is 309.4K.

  1. Define a function that calculates the vapour pressure for a given temperature and boiling point. Check the function works by calling it at the MATLAB command prompt.
  2. The next objective is to write a program that calculates the vapour pressure of pentane at n equally spaced points between temperatures T1 and T2, where n, T1, T2 are variables to which values respectively of 10, 260K and 340K are assigned in your program. There are two ways to this, you should try both of them and compare the results:
  3. Select your favoured method from 2 and adapt your program to tabulate together the vapour pressures of both butane and pentane between their normal boiling points.

    HINT