{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

Info icon This preview shows pages 1–4. 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
Image of page 1

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

View Full Document Right 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 >> (4/3)*pi*v^2 ans = 37.6991 2.4 Command Window >> %This program solves problem 2.4 in Chapman (2008). >> % >> % Garrett Lucas >> % Spring 2010 >> % >> array1 = [1.1 0.0 2.1 -3.5 6.0 0.0 1.1 -6.6 2.8 3.4 2.1 0.1 0.3 -0.4 1.3 -1.4 5.1 0.0 1.1 0.0]
Image of page 2
Image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}