Preview

Mathlab

Satisfactory Essays
Open Document
Open Document
456 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Mathlab
%Question a)Equation 1 %T in unit celcius
T=[
77 77 63.5 53.3 53.3 77.6 77.6 77.6 52.9 52.9 77.6 62.7 53.7 53.7 79.5 79.5 64.0 64.0 54.5 39.2 38.3 49.4 40.2 40.2 40.2 40.2 39.7 40.2 40.2 40.2 39.9 39.9 39.8];
%rate constant k in unite mol/m^3 kE5=[ 2.70 2.87 1.48 0.71 0.66 2.44 1.26 2.40 0.72 0.70 2.40 1.42 0.69 0.68 3.03 3.06 1.31 1.37 0.70 0.146 0.159 0.260 0.284 0.323 0.283 0.284 0.277 0.318 0.323 0.326 0.312 0.314 0.307]*10^5;
TKelvin=T+273; % change to kelvin
Tnew=1./TKelvin;
knew=log10(kE5);
R= 82.05746; %cm^3?atm.?K^?1.?mol^?1 polyfit(Tnew,knew,1) c1=polyfit(Tnew,knew,1); polyval(c1,Tnew); plot(Tnew,knew,'b*',Tnew,polyval(c1,Tnew))

Command window
>> classwork_week4

ans =

1.0e+03 *

-2.8178 0.0134

%Question a)Equation 2
Tabs=298;% unit kelvin
TKelvin_2=1/Tabs-1./TKelvin;
polyfit(TKelvin_2,knew,1) c1=polyfit(TKelvin_2,knew,1); polyval(c1,TKelvin_2); plot(TKelvin_2,knew,'b*',TKelvin_2,polyval(c1,TKelvin_2)) Command window
>> classwork_week4

ans =

1.0e+03 *

2.8178 0.0040

Editor
%Question b) Equation 1 function f=classworkfuncequation1(a,Tnew)
A=a(1);
B=a(2); f=A*exp(-B.*Tnew); Command window
Cguessequation1=[1 1];
>> Cnew=nlinfit(Tnew,knew,@classworkfuncequation1,Cguessequation1)

Cnew =

27.6813 572.1670

>> Cguessequation1=[1 1];
>> Cnew=lsqcurvefit(@classworkfuncequation1,Cguessequation1,Tnew,knew)

Local minimum found.

Optimization completed because the size of the gradient is less than the default value of the function tolerance.

<stopping criteria details>

Cnew =

27.6813 572.1670

Editor
%Question b) Equation 2 function f=classworkfunc(a,TKelvin_2)
A=a(1);
B=a(2); f=A*exp(-B.*TKelvin_2); Command Window

>> Cguessequation2=[1 1];
>>

You May Also Find These Documents Helpful

  • Good Essays

    prelab 8

    • 564 Words
    • 2 Pages

    2. What is the percent copper and zinc in a post 1982 penny? 97.5% Zn and 2.5% Cu…

    • 564 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    . 5. 492: ……………….. +…………………… +………………… .…

    • 868 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Labpaq Math Lab

    • 1518 Words
    • 7 Pages

    The approximate age of the earth is 4,600,000,000 years old. Using scientific notation this number would look like 4.6 * 10^9. Scientific notation is shorter and easier to read than 4,600,000,000.…

    • 1518 Words
    • 7 Pages
    Good Essays
  • Good Essays

    vlab wk 1

    • 1842 Words
    • 9 Pages

    Write a paragraph (minimum five college-level sentences) below that summarizes what was accomplished in this lab, what you learned by performing it, how it relates to this week’s TCOs and other course material, and just as important, how you feel it will benefit you in your academic and professional career. (3 points)…

    • 1842 Words
    • 9 Pages
    Good Essays
  • Good Essays

    Black-tailed Prairie Dogs, Nicole Lee, Biology 101, concepts of Biology, Aviano Air Base, 20 April 2007…

    • 496 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Bondlab

    • 1147 Words
    • 5 Pages

    * Set 1 Bunsen burner under each watch glass and observe the speed of the melting point.…

    • 1147 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    Math

    • 4047 Words
    • 10 Pages

    "The history of the present King of Great Britain is a history of repeated injuries and usurpations,…

    • 4047 Words
    • 10 Pages
    Satisfactory Essays
  • Powerful Essays

    MAth

    • 1081 Words
    • 5 Pages

    2. Describe the method you have chosen for your process recording and your plans for making it. For example, if you choose to submit a video file, how will you record and produce this? How will you upload it and send it to your instructor? (14 points)…

    • 1081 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Math

    • 3046 Words
    • 13 Pages

    http://www.physicsforums.com/showthread.php?t=638735 – Mark 44 post #5 – “Here’s why…” – used for MAPS 3 and 4…

    • 3046 Words
    • 13 Pages
    Good Essays
  • Good Essays

    mathway

    • 284 Words
    • 1 Page

    Monkeyman” is a story from 145th Street, the collection of short stories by Walter Dean Myers. (From Amazon.com review) “Walter Dean Myers's book of interconnected short stories is a sweet and sour mix of the comedy and tragedy of the human condition, played out against the backdrop of the Harlem neighborhood that is centered around 145th Street…Myers frankly discusses the consequences of violence, drive-bys and gang war through his articulate characters, but tempers these episodes with such a love of his fictional community that every character shines through with the hope and strength of a survivor. Changing his point of view from teen to adult and back again through each vignette, Myers successfully builds a bridge of understanding between adolescents and adults that will help each group better understand the problems of the other. [It] beautifully illustrates the good that can come out of a community that stands together.”…

    • 284 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Math

    • 288 Words
    • 1 Page

    The major achievements in human history during the Old Stone Age was the invention of tools, mastery over fire, and the development in language.…

    • 288 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Math

    • 329 Words
    • 2 Pages

    Nick so far seems to be intelligent and collected, leading me to believe he will flow cleanly through the mud that the plot might throw at him. He should make for an interesting narrator.…

    • 329 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    math

    • 291 Words
    • 1 Page

    What were the most revolutionary social and economic developments of the last quarter of the nineteenth century?…

    • 291 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    math

    • 275 Words
    • 2 Pages

    3. After 5 cycles of CPR with no response apply AED and use pediatric pads.…

    • 275 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    1 12. 2 13. 1 14. 2 15. 1 16. 2 17. 1 18.…

    • 2040 Words
    • 9 Pages
    Satisfactory Essays