#1 - HomeWork Set #1 Garrett Lucas CVEN489 1.1 M-File...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
HomeWork Set #1 Garrett Lucas CVEN489 1.1 M-File (test1.m) %This program solves problem 1.1 in Chapman (2008). % %Garrett Lucas %Spring 2010 % x=0:.1:10; y=2 * exp(-.2*x); plot(x,y) title( 'Plot of Y= 2e^(-.2*x)' ) xlabel( 'x' ) ylabel( 'y' ) Command Window >>test1 1.3 Command Window >> %This program solves problem 1.3 in Chapman (2008). >> % >> % Garrett Lucas >> % Spring 2010 >> % >> lookfor LOG10 log10 LOG10 Common (base 10) logarithm. LOG10(X) is the base 10 logarithm of the elements of X. Complex results are produced if X is not positive. Class support for input X: float: double, single See also log , log2 , exp , logm . Overloaded methods: codistributed/log10 fints/log10 Reference page in Help browser doc log10
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1.4 Command Window >> %This program solves problem 1.4 in Chapman (2008). >> % >> % Garrett Lucas >> % Spring 2010 >> % >> u=1; >> v=3; >> % Part A >> (4*u)/(3*v) ans = 0.4444 >> % Part B >> (2*v^-2)/(u+v)^2 ans = 0.0139 >> % Part C >> v^3/(v^3-u^3) ans = 1.0385 >> % Part D
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/09/2011 for the course CVEN 489 taught by Professor Staff during the Spring '08 term at Texas A&M.

Page1 / 4

#1 - HomeWork Set #1 Garrett Lucas CVEN489 1.1 M-File...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online