Contents

Aaron Klapheck

% Lab #3
clear, clc, home
fprintf('The date and time: %s \n', datestr(now))
The date and time: 19-Feb-2008 14:00:12 

Part 1

Coeficiants_for_CO2 = cvcon('CO2')
pretty(poly2sym(Coeficiants_for_CO2))
Coeficiants_for_CO2 =

  1.0e+003 *

    8.7264    0.1840    0.0019   -0.0000    0.0000   -0.0000

 
  2398683846917751  5   46001  4   76561  3    3845742616841829    2
  ---------------- x  + ----- x  + ----- x  - ------------------- x
    274877906944         250       40000      2305843009213693952

              6900274681104297             4856167974732953
         + ---------------------- x - --------------------------
           9444732965739290427392     38685626227668133590597632

Part 2

% Save polynomial coefficants to data file co2.dat
Coeficiants = cvcon('CO2');
save co2.dat Coeficiants -ascii;

Coeficiants_for_CO2 = cvconEdit('CO2')
pretty(poly2sym(Coeficiants_for_CO2))
Coeficiants_for_CO2 =

  1.0e+003 *

    8.7264
    0.1840
    0.0019
   -0.0000
    0.0000
   -0.0000

 
  2398683846917751  5   46001  4   76561  3    3845742616841829    2
  ---------------- x  + ----- x  + ----- x  - ------------------- x
    274877906944         250       40000      2305843009213693952

              6900274681104297             4856167974732953
         + ---------------------- x - --------------------------
           9444732965739290427392     38685626227668133590597632

Part 3

Coeficiants_for_ethane = cvconEdit('ethane')
pretty(poly2sym(Coeficiants_for_ethane))
Coeficiants_for_ethane =

  1.0e+004 *

    2.6209    0.0397    0.0002    0.0000   -0.0000    0.0000

 
  7204305024787153  5   6989701850497601  4   2293700629078359  3
  ---------------- x  + ---------------- x  + ---------------- x
    274877906944         17592186044416       1125899906842624

            1839310353601659   2     4261024215999499
         + ------------------ x  - --------------------- x
           288230376151711744      590295810358705651712

               5330885338801767
         + -------------------------
           2417851639229258349412352